Mentalis.org Security Library documentation

SecureTcpListener Constructor (SecureSocket, SecurityOptions)

Initializes a new instance of the SecureTcpListener class with the specified listener SecureSocket.

[Visual Basic]
Overloads Protected Sub New( _
   ByVal listener As SecureSocket, _
   ByVal options As SecurityOptions _
)
[C#]
protected SecureTcpListener(
   SecureSocket listener,
   SecurityOptions options
);

Parameters

listener
The listener SecureSocket.
options
The security options to use.

Exceptions

Exception TypeCondition
ArgumentNullExceptionlistener is a null reference (Nothing in Visual Basic).
SocketExceptionAn error occurs while reading the LocalEndPoint property.
ObjectDisposedExceptionThe SecureSocket has been closed.

See Also

SecureTcpListener Class | SecureTcpListener Members | Org.Mentalis.Security.Ssl Namespace | SecureTcpListener Constructor Overload List