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 (IPEndPoint)

Establishes a connection to a remote end point.

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

Parameters

ep
An System.Net.Sockets.IPEndPoint referencing the desired host and port.

Return Value

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

Remarks

Connect establishes a UDP connection to the host referenced by the System.Net.Sockets.IPEndPoint. 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