Mentalis.org Security Library documentation

SecureTcpListener Constructor (IPEndPoint, SecurityOptions)

Initializes a new instance of the SecureTcpListener class with the specified local endpoint.

[Visual Basic]
Overloads Public Sub New( _
   ByVal localEP As IPEndPoint, _
   ByVal options As SecurityOptions _
)
[C#]
public SecureTcpListener(
   IPEndPoint localEP,
   SecurityOptions options
);

Parameters

localEP
The local endpoint to which to bind the listener Socket.
options
The security options to use.

Remarks

localEP specifies the local IPEndPoint. This constructor creates an underlying SecureSocket, and binds that SecureSocket to localEP. If you call the Start method, TcpListener will listen for connections on localEP.

Exceptions

Exception TypeCondition
ArgumentNullExceptionlocalEP is a null reference (Nothing in Visual Basic).

See Also

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