Establishes a connection to a remote device.

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

Syntax

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

Parameters

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

Remarks

The Connect(EndPoint) 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(ArraySegment<(Of <<'(Byte>)>>)) method, or receive data from the remote device with the Receive(ArraySegment<(Of <<'(Byte>)>>)) method.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also