Mentalis.org Security Library documentation

SecureTcpListener Constructor (Int32, SecurityOptions)

Initializes a new instance of the SecureTcpListener class that listens on the specified port.

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

Parameters

port
The port on which to listen. If this number is 0, the system will assign an open port.
options
The security options to use.

Remarks

port specifies the local port number on which you intend to listen. When you call Start, SecureTcpListener uses the default network interface to listen for connections on the specified port.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionThe port parameter is not between MinPort and MaxPort.

See Also

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