public UDPConnectionListener(SendReceiveOptions sendReceiveOptions,
ApplicationLayerProtocolStatus applicationLayerProtocol,
UDPOptions udpOptions, bool allowDiscoverable = false)
:base(ConnectionType.UDP, sendReceiveOptions, applicationLayerProtocol, allowDiscoverable)
{
if (applicationLayerProtocol == ApplicationLayerProtocolStatus.Disabled && udpOptions != UDPOptions.None)
throw new ArgumentException("If the application layer protocol has been disabled the provided UDPOptions can only be UDPOptions.None.");
UDPOptions = udpOptions;
}