TlsClientSocket.ConnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9147)
ConnectAsync(EndPoint)
Establishes a connection to a remote device.
Declaration
public async Task ConnectAsync(EndPoint remoteEP)
Parameters
Returns
Remarks
The ConnectremoteEP
parameter. Once the connection has been made,
you can send data to the remote device with the SendAsync(ArraySegment<Byte>) method,
or receive data from the remote device with the ReceiveAsync(ArraySegment<Byte>) method.
ConnectAsync(String, Int32)
Establishes a connection to a remote device.
Declaration
public async Task ConnectAsync(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. |
Returns
Remarks
The ConnectserverName
and port
parameters. Once the connection has been made,
you can send data to the remote device with the SendAsync(ArraySegment<Byte>) method,
or receive data from the remote device with the ReceiveAsync(ArraySegment<Byte>) method.