TlsClientSocket.Connect Method
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9448)
Connect(EndPoint)
Establishes a connection to a remote device.
Declaration
public void Connect(EndPoint remoteEP)
Parameters
| Type | Name | Description |
|---|---|---|
| EndPoint | remoteEP | 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<Byte>) method,
or receive data from the remote device with the Receive(ArraySegment<Byte>) method.
Connect(String, Int32)
Establishes a connection to a remote device.
Declaration
public void Connect(string serverName, int port)
Parameters
| Type | Name | Description |
|---|---|---|
| String | serverName | The hostname (or IP address) of the remote device. |
| Int32 | port | The port number associated with the hostname. |
Remarks
The Connect(String, Int32) method establishes a network connection to a host identified
by the serverName and port
parameters. Once the connection has been made,
you can send data to the remote device with the Send(ArraySegment<Byte>) method,
or receive data from the remote device with the Receive(ArraySegment<Byte>) method.