SystemExt/Network/TCPClient.cs
/// <summary>
/// Attempt to connect to the specified remote server.
/// </summary>
/// <param name="endPoint">
/// IP address and TCP port to connect to.
/// </param>
/// <returns>
/// A new instance of the <see cref="TClient"/> class which represents the connection.
/// </returns>
Attempt to connect to the specified remote server.
Attempt to connect to the specified remote server .
public static TClient Connect(IPEndPoint endPoint)
        {
            var socket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
            var client = new TClient();
            socket.BeginConnect(endPoint, client.EndConnect, socket);
            return client;
        }
public static TClient Connect ( IPEndPoint endPoint ) { var socket = new Socket ( endPoint . AddressFamily , SocketType . Stream , ProtocolType . Tcp ) ; var client = new TClient ( ) ; socket . BeginConnect ( endPoint , client . EndConnect , socket ) ; return client ; }
Attempt to connect to the specified remote server.
Attempt to connect to the specified remote server .
A new instance of the  class which represents the connection.
A new instance of the class which represents the connection .
endPoint
IPEndPoint
IP address and TCP port to connect to.
IP address and TCP port to connect to .