Click or drag to resize

UdpBroadcastListener Class

Listens for UDP multicast broadcast messages on a specific port. The messages will normally come from the complimentary class UdpBroadcastClient which is broadcasting somewhere in the network horizon on the same port as te lstener. Multiple listeners are allowed on the same port on the same computer.
Inheritance Hierarchy
SystemObject
  Orthogonal.MixedCommsLibUdpBroadcastListener

Namespace: Orthogonal.MixedCommsLib
Assembly: Orthogonal.MixedCommsLib (in Orthogonal.MixedCommsLib.dll) Version: 2.0.3
Syntax
C#
public sealed class UdpBroadcastListener : IDisposable

The UdpBroadcastListener type exposes the following members.

Constructors
 NameDescription
Public methodUdpBroadcastListener Constructs a UDP listener on a specified port.
Top
Methods
 NameDescription
Public methodDispose Stops listening for client broadcast messages and releases resources.
Public methodEquals
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Public methodToString
(Inherited from Object)
Top
Events
 NameDescription
Public eventListenCallback Parent applications can hook into this event to receive notification of the arrival of a broadcast message. Note that the event can be raised on a worker thread, so listening STA applications may need to marshal event processing back to a different thread.
Top
Remarks
The UdpBroadcaster and UdpListener classes are part of a simple one-way broadcasting protocol which is described in detail in the Wiki article section titled UDP Broadcasting.
See Also