TlsClientSocket.BeginConnect Method
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9147)
BeginConnect(EndPoint, AsyncCallback, Object)
Establishes a connection to a remote device.
Declaration
public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
End |
remoteEP | An End |
Async |
callback | The Async |
Object | state | An object containing state information for this request. |
Returns
Type | Description |
---|---|
IAsync |
An IAsync |
Remarks
The BeginremoteEP
parameter. Once the connection has been made,
you can send data to the remote device with the Begin
BeginConnect(String, Int32, AsyncCallback, Object)
Establishes a connection to a remote device.
Declaration
public IAsyncResult BeginConnect(string serverName, int port, AsyncCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The hostname (or IP address) of the remote device. |
Int32 | port | The port number associated with the hostname. |
Async |
callback | The Async |
Object | state | An object containing state information for this request. |
Returns
Type | Description |
---|---|
IAsync |
An IAsync |
Remarks
The BeginserverName
and port
parameters. Once the connection has been made,
you can send data to the remote device with the Begin