Connect the client to the specified end point.
[Visual Basic] Overloads Public Function Connect( _ ByVal remoteEP As IPEndPoint _ ) As Integer [C#] public int Connect( IPEndPoint remoteEP ); [C++] public: int Connect( IPEndPoint* remoteEP ); [JScript] public function Connect( remoteEP : IPEndPoint ) : int;
0 if the connection was successful; otherwise, a non-zero error code.
Connect establishes a TCP connection to the IP end point specified. The connection is made using the Connect method of the underlying Socket instance.
TCPClient Class | TCPClient Members | System.Net.Sockets Namespace | TCPClient.Connect Overload List