Mentalis.org Security Library documentation

SecureTcpListener Constructor (Int32)

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

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

Parameters

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

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
ArgumentOutOfRangeExceptionport is not between MinPort and MaxPort.

See Also

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