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 (IPAddress, Int32)

Connects the client to the specified port on the specified host.

[Visual Basic]
Overloads Public Function Connect( _
   ByVal address As IPAddress, _
   ByVal port As Integer _
) As Integer
[C#]
public int Connect(
   IPAddress address,
   int port
);
[C++]
public: int Connect(
   IPAddress* address,
   int port
);
[JScript]
public function Connect(
   address : IPAddress,
   port : int
) : int;

Parameters

address
IP address of the desired host.
port
[To be supplied.]

Return Value

0 if the connection was successful; otherwise, a non-zero error code.

Remarks

Connect establishes a TCP connection to the port and IP address specified. The connection is made using the Connect method of the underlying Socket instance.

See Also

TCPClient Class | TCPClient Members | System.Net.Sockets Namespace | TCPClient.Connect Overload List