Connection StartListening T  Method (ConnectionListenerBase, T, Boolean)NetworkComms.Net Help
Start listening for new incoming connections on specified OnlineIPEndPoint. Inspect listener.LocalListenIPEndPoint when method returns to determine the OnlineIPEndPoint used.

Namespace: NetworkCommsDotNet.Connections
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static void StartListening<T>(
	ConnectionListenerBase listener,
	T desiredLocalEndPoint,
	bool useRandomPortFailOver = false
)
where T : EndPoint

Parameters

listener
Type: NetworkCommsDotNet.Connections ConnectionListenerBase
The listener to use.
desiredLocalEndPoint
Type: T
The desired local OnlineIPEndPoint to use for listening. Use a port number of 0 to dynamically select a port.
useRandomPortFailOver (Optional)
Type: OnlineSystem Boolean
If true and the requested local port is not available will select one at random. If false and provided port is unavailable will throw CommsSetupShutdownException
Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:NetworkCommsDotNet.Connections.Connection.StartListening``1(NetworkCommsDotNet.Connections.ConnectionListenerBase,``0,System.Boolean)"]

See Also