Connects the client to a TCP host.
Connects the client to the specified port on the specified host.
[Visual Basic] Overloads Public Function Connect(String, Integer) As Integer
[C#] public int Connect(String, int);
[C++] public: int Connect(String*, int);
[JScript] public function Connect(String, int) : int;
Connects the client to the specified port on the specified host.
[Visual Basic] Overloads Public Function Connect(IPAddress, Integer) As Integer
[C#] public int Connect(IPAddress, int);
[C++] public: int Connect(IPAddress*, int);
[JScript] public function Connect(IPAddress, int) : int;
Connect the client to the specified end point.
[Visual Basic] Overloads Public Function Connect(IPEndPoint) As Integer
[C#] public int Connect(IPEndPoint);
[C++] public: int Connect(IPEndPoint*);
[JScript] public function Connect(IPEndPoint) : int;
TCPClient Class | TCPClient Members | System.Net.Sockets Namespace