UDPConnectionListener Constructor NetworkComms.Net Help
Create a new instance of a UDP listener

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

public UDPConnectionListener(
	SendReceiveOptions sendReceiveOptions,
	ApplicationLayerProtocolStatus applicationLayerProtocol,
	UDPOptions udpOptions,
	bool allowDiscoverable = false
)

Parameters

sendReceiveOptions
Type: NetworkCommsDotNet SendReceiveOptions
The SendReceiveOptions to use with incoming data on this listener
applicationLayerProtocol
Type: NetworkCommsDotNet.Connections ApplicationLayerProtocolStatus
If enabled NetworkComms.Net uses a custom application layer protocol to provide useful features such as inline serialisation, transparent packet transmission, remote peer handshake and information etc. We strongly recommend you enable the NetworkComms.Net application layer protocol.
udpOptions
Type: NetworkCommsDotNet.Connections.UDP UDPOptions
The UDPOptions to use with this listener
allowDiscoverable (Optional)
Type: OnlineSystem Boolean
Determines if the newly created ConnectionListenerBase will be discoverable if PeerDiscovery is enabled.
See Also