Mentalis.org Security Library documentation

SecureTcpListener Constructor (IPAddress, Int32, SecurityOptions)

Initializes a new instance of the SecureTcpListener class that listens to the specified IP address and port.

[Visual Basic]
Overloads Public Sub New( _
   ByVal localaddr As IPAddress, _
   ByVal port As Integer, _
   ByVal options As SecurityOptions _
)
[C#]
public SecureTcpListener(
   IPAddress localaddr,
   int port,
   SecurityOptions options
);

Parameters

localaddr
The local IP address.
port
The port on which to listen.
options
The security options to use.

Exceptions

Exception TypeCondition
ArgumentNullExceptionlocaladdr is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionport is not between MinPort and MaxPort.

See Also

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