Connection StartListening T  Method (List ConnectionListenerBase , List T , Boolean)NetworkComms.Net Help
Start listening for new incoming connections on specified OnlineIPEndPoints. Listener is matched with desired localIPEndPoint based on List index. Inspect listener.LocalListenIPEndPoint when method returns to determine the OnlineIPEndPoints used.

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

public static void StartListening<T>(
	List<ConnectionListenerBase> listeners,
	List<T> desiredLocalEndPoints,
	bool useRandomPortFailOver
)
where T : EndPoint

Parameters

listeners
Type: OnlineSystem.Collections.Generic List ConnectionListenerBase 
The listeners to use.
desiredLocalEndPoints
Type: OnlineSystem.Collections.Generic List T 
The desired local OnlineIPEndPoints to use for listening. Use a port number of 0 to dynamically select a port.
useRandomPortFailOver
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(System.Collections.Generic.List{NetworkCommsDotNet.Connections.ConnectionListenerBase},System.Collections.Generic.List{``0},System.Boolean)"]

See Also