Establishes a connection to a remote device.

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Sub Connect ( _
	remoteEP As EndPoint _
)
C#
public void Connect(
	EndPoint remoteEP
)

Parameters

remoteEP
Type: System.Net..::..EndPoint
An IPEndPoint or DnsEndPoint that represents the remote device.

Implements

ISocket..::..Connect(EndPoint)

Remarks

The Connect method establishes a network connection to a device identified by the remoteEP parameter. Once the connection has been made, you can send data to the remote device with the Send method, or receive data from the remote device with the Receive method.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also