34 references to Client
System.Net.Mail (1)
System\Net\Mail\SmtpConnection.cs (1)
146_tcpClient.Client.Blocking = false;
System.Net.Sockets (33)
System\Net\Sockets\TCPClient.cs (33)
92public int Available => Client?.Available ?? 0; 109public bool Connected => Client?.Connected ?? false; 113get { return Client?.ExclusiveAddressUse ?? false; } 136Client.Connect(hostname, port); 137_family = Client.AddressFamily; 168Client.Connect(remoteEP); 169_family = Client.AddressFamily; 179Client.Connect(ipAddresses, port); 180_family = Client.AddressFamily; 185CompleteConnectAsync(Client.ConnectAsync(address, port)); 188CompleteConnectAsync(Client.ConnectAsync(host, port)); 191CompleteConnectAsync(Client.ConnectAsync(addresses, port)); 199CompleteConnectAsync(Client.ConnectAsync(remoteEP)); 208CompleteConnectAsync(Client.ConnectAsync(address, port, cancellationToken)); 211CompleteConnectAsync(Client.ConnectAsync(host, port, cancellationToken)); 214CompleteConnectAsync(Client.ConnectAsync(addresses, port, cancellationToken)); 223CompleteConnectAsync(Client.ConnectAsync(remoteEP, cancellationToken)); 232Client.BeginConnect(address, port, requestCallback, state); 235Client.BeginConnect(host, port, requestCallback, state); 238Client.BeginConnect(addresses, port, requestCallback, state); 259return _dataStream ??= new NetworkStream(Client, true); 308get { return (int)Client.GetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer)!; } 309set { Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveBuffer, value); } 315get { return (int)Client.GetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendBuffer)!; } 316set { Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendBuffer, value); } 325return (int)Client.GetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout)!; 330Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, value); 340return (int)Client.GetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout)!; 345Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, value); 355return Client.LingerState; 360Client.LingerState = value!; 367get { return Client.NoDelay; } 368set { Client.NoDelay = value; }