C# Class NetworkCommsDotNet.Connections.UDP.UDPConnectionListener

A UDP connection listener
Inheritance: ConnectionListenerBase
Show file Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Private Properties

Property Type Description
StartListening void
StopListening void

Public Methods

Method Description
UDPConnectionListener ( SendReceiveOptions sendReceiveOptions, ApplicationLayerProtocolStatus applicationLayerProtocol, UDPOptions udpOptions, bool allowDiscoverable = false ) : System

Create a new instance of a UDP listener

Private Methods

Method Description
StartListening ( EndPoint desiredLocalListenEndPoint, bool useRandomPortFailOver ) : void
StopListening ( ) : void

Method Details

UDPConnectionListener() public method

Create a new instance of a UDP listener
public UDPConnectionListener ( SendReceiveOptions sendReceiveOptions, ApplicationLayerProtocolStatus applicationLayerProtocol, UDPOptions udpOptions, bool allowDiscoverable = false ) : System
sendReceiveOptions SendReceiveOptions The SendReceiveOptions to use with incoming data on this listener
applicationLayerProtocol 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 UDPOptions The UDPOptions to use with this listener
allowDiscoverable bool Determines if the newly created will be discoverable if is enabled.
return System