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!

UDPClient.Connect (IPAddress, Int32)

Establishes a connection with the host at the specified address on the specified port.

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

Parameters

addr
The IP address of the remote host to connect to.
port
The remote port to communicate on.

Return Value

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

Remarks

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

See Also

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