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;
0 if the connection was successful; otherwise a non-zero error code.
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.
UDPClient Class | UDPClient Members | System.Net.Sockets Namespace | UDPClient.Connect Overload List