Rebex SFTP for .NET

ProxySocket.BeginConnect Method (String, Int32, AsyncCallback, Object)

Begins an asynchronous request for a connection to a network device.

public IAsyncResult BeginConnect(
   string serverName,
   int serverPort,
   AsyncCallback callback,
   object state
);

Parameters

serverName
The hostname (or IP address) of the remote device.
serverPort
The port number associated with the hostname.
callback
The AsyncCallback delegate.
state
An object containing state information for this request.

Return Value

An IAsyncResult that references the asynchronous connection.

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.

See Also

ProxySocket Class | Rebex.Net Namespace | ProxySocket.BeginConnect Overload List