Rebex SFTP for .NET

ProxySocket.BeginListen Method 

Starts an asynchronously request to listen for an incoming connection using the specified control socket as a base.

public IAsyncResult BeginListen(
   ProxySocket controlSocket,
   AsyncCallback callback,
   object state
);

Parameters

controlSocket
The control socket to use as a base.
callback
The AsyncCallback delegate.
state
An object containing state information for this request.

Return Value

An IAsyncResult that references the asynchronous request.

Remarks

This method differs from Listen:

To accept an incoming connection, use the Accept or BeginAccept method of the same instance.

Note: When connected through a HTTP proxy server, this method will fail.

See Also

ProxySocket Class | Rebex.Net Namespace