Mentalis.org Security Library documentation

SecureTcpListener Constructor (IPEndPoint)

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

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

Parameters

localEP
The local endpoint to which to bind the listener Socket.

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