ProxySocket.Listen Method
Starts a request to listen for an incoming connection using the specified control socket as a base.
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:
- A control connection socket needs to be specified. This is used by a proxy server to decide whether the request for Listen is appropriate.
- Only a single incoming connection is accepted by a proxy server.
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