TCPConnection StartListening Method (IPEndPoint, Boolean, Boolean)NetworkComms.Net Help
Accept new incoming TCP connections on specified OnlineIPEndPoint

Namespace: NetworkCommsDotNet.Connections.TCP
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: (

[ObsoleteAttribute("Depreciated, please use Connection.StartListening.")]
public static void StartListening(
	IPEndPoint newLocalEndPoint,
	bool useRandomPortFailOver = true,
	bool allowDiscoverable = false


Type: OnlineSystem.Net IPEndPoint
The localEndPoint to listen for connections on.
useRandomPortFailOver (Optional)
Type: OnlineSystem Boolean
If true and the requested local port is not available will select one at random. If false and a port is unavailable will throw CommsSetupShutdownException
allowDiscoverable (Optional)
Type: OnlineSystem Boolean
Determines if the newly created ConnectionListenerBase will be discoverable if PeerDiscovery is enabled.
See Also