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

Namespace:  Rebex.Net
Assembly:  Rebex.Networking (in Rebex.Networking.dll)

Syntax

Visual Basic
Public Function Listen ( _
	controlSocket As ISocket _
) As EndPoint
C#
public EndPoint Listen(
	ISocket controlSocket
)

Parameters

controlSocket
Type: Rebex.Net..::..ISocket
The control socket to use as a base.

Return Value

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

Implements

ISocketExt..::..Listen(ISocket)

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.
To accept an incoming connection, use the Accept()()()() method.

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

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also