Mentalis.org Security Library documentation

SecureTcpListener.LocalEndpoint Property

Gets the underlying EndPoint of the current SecureTcpListener.

[Visual Basic]
Public ReadOnly Property LocalEndpoint As EndPoint
[C#]
public System.Net.EndPoint LocalEndpoint {get;}

Property Value

An instance of the EndPoint class used to bind the underlying SecureSocket.

Remarks

You can use LocalEndpoint if you want to identify the local network interface and port number being used to listen for incoming client connection requests.
Note To obtain address and port information, you must explicitly cast LocalEndpoint to return an IPEndPoint. You can then use the various methods within IPEndPoint to retrieve the desired information.

See Also

SecureTcpListener Class | SecureTcpListener Members | Org.Mentalis.Security.Ssl Namespace