NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TCPClient.Connect

Connects the client to a TCP host.

Overload List

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;

See Also

TCPClient Class | TCPClient Members | System.Net.Sockets Namespace