Rebex SFTP for .NET

ProxySocket.BeginAccept Method 

Begins an asynchronous request to accept an incoming connection.

public IAsyncResult BeginAccept(
   AsyncCallback callback,
   object state
);

Parameters

callback
The AsyncCallback delegate.
state
An object containing state information for this request.

Return Value

An IAsyncResult that references the asynchronous request.

Remarks

A call to Accept is only allowed after a call to Listen or BeginListen methods of the same instance.

This method differs to a great extent from Listen. It does not return a new instance of the ProxySocket class. Instead, the current instance is used to handle the incoming connection.

See Also

ProxySocket Class | Rebex.Net Namespace