Mentalis.org Security Library documentation

VirtualSocket.Listen Method 

Places a VirtualSocket in a listening state.

[Visual Basic]
Overridable Public Sub Listen( _
   ByVal backlog As Integer _
)
[C#]
public virtual void Listen(
   int backlog
);

Parameters

backlog
The Maximum length of the queue of pending connections.

Remarks

In a listening state, the VirtualSocket will poll for incoming connection attempts. If you want to listen using a specific network interface on a specific port, you must call the Bind method first.

Exceptions

Exception TypeCondition
SocketExceptionAn operating system error occurs while accessing the VirtualSocket.
ObjectDisposedExceptionThe VirtualSocket has been closed.

See Also

VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace