ProxySocket.Listen Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
Listen(ISocket)
Starts a request to listen for an incoming connection using the specified control socket as a base.
Declaration
public EndPoint Listen(ISocket controlSocket)
Parameters
Type | Name | Description |
---|---|---|
ISocket | controlSocket | The control socket to use as a base. |
Returns
Type | Description |
---|---|
EndPoint | The endpoint to which a connection from a remote host can be made. |
Remarks
This method differs from Listen(Int32):
- A control connection socket needs to be specified. This might be needed by a proxy server socket.
- Only a single incoming connection is accepted.
Note: When connected through a HTTP proxy server, this method will fail.