System.Net.Sockets.TcpClient
namespace System.Net.Sockets
{
public class TcpClient : IDisposable
{
protected bool Active { get; set; }
public int Available { get; }
public Socket Client { get; set; }
public bool Connected { get; }
public bool ExclusiveAddressUse { get; set; }
public LingerOption LingerState { get; set; }
public bool NoDelay { get; set; }
public int ReceiveBufferSize { get; set; }
public int ReceiveTimeout { get; set; }
public int SendBufferSize { get; set; }
public int SendTimeout { get; set; }
public TcpClient();
public TcpClient(IPEndPoint localEP);
public TcpClient(AddressFamily family);
public TcpClient(string hostname, int port);
public IAsyncResult BeginConnect(IPAddress address, int port, AsyncCallback requestCallback, object state);
public IAsyncResult BeginConnect(IPAddress[] addresses, int port, AsyncCallback requestCallback, object state);
public IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state);
public void Close();
public void Connect(IPAddress address, int port);
public void Connect(IPAddress[] ipAddresses, int port);
public void Connect(IPEndPoint remoteEP);
public void Connect(string hostname, int port);
public Task ConnectAsync(IPAddress address, int port);
public Task ConnectAsync(IPAddress[] addresses, int port);
public Task ConnectAsync(string host, int port);
public void Dispose();
protected virtual void Dispose(bool disposing);
public void EndConnect(IAsyncResult asyncResult);
public NetworkStream GetStream();
}
}