ProxySocket.BeginListen Method
Starts an asynchronously 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.
-
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:
- 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 connected through a HTTP proxy server, this method will fail.
See Also
ProxySocket Class | Rebex.Net Namespace