Start listening for incoming connections of the provided ConnectionType.
If the desired localEndPoint is not available will throw a CommsSetupShutdownException.
Namespace: NetworkCommsDotNet.ConnectionsAssembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Parameters
- connectionType
- Type: NetworkCommsDotNet.Connections ConnectionType
The ConnectionType to start listening for.
- desiredLocalEndPoint
- Type: T
The desired localEndPoint. For IPEndPoints use IPAddress.Any to listen on all FilteredLocalAddresses and port 0 to randomly select an available port.
- allowDiscoverable (Optional)
- Type: System Boolean
Determines if the listeners created will be discoverable if PeerDiscovery is enabled.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:NetworkCommsDotNet.Connections.Connection.StartListening``1(NetworkCommsDotNet.Connections.ConnectionType,``0,System.Boolean)"]
Return Value
Type: List ConnectionListenerBaseA list of all listeners used.
See Also