Rebex SFTP for .NET

ProxySocket.Listen Method 

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

public IPEndPoint Listen(
   ProxySocket controlSocket
);

Parameters

controlSocket
The control socket to use as a base.

Return Value

The endpoint to which a connection from a remote host can be made.

Remarks

This method differs from Listen:

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

Note: When not connected through a proxy server, the controlSocket parameter is ignored.

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

See Also

ProxySocket Class | Rebex.Net Namespace