Workspace 6.21.5
Signals | Public Member Functions | List of all members
UdpBroadcast Class Reference

Local broadcast helper This class implements a broadcast helper on the local interface using UDP diagrams. Listener apps can also use this class to receive the broadcast messages on shared socket SO_REUSEADDR.

#include <Workspace/Application/Ipc/broadcast.h>

Inherits QObject.

Signals

void onMessageReceived (QByteArray message)
 

Public Member Functions

 UdpBroadcast ()
 
 UdpBroadcast (const UdpBroadcast &)=delete
 
 ~UdpBroadcast () override
 
UdpBroadcastoperator= (const UdpBroadcast &)=delete
 
void send (const QByteArray &message)
 
void startListening ()
 
void stopListening ()
 

Constructor & Destructor Documentation

◆ UdpBroadcast() [1/2]

◆ UdpBroadcast() [2/2]

UdpBroadcast ( const UdpBroadcast )
delete

◆ ~UdpBroadcast()

~UdpBroadcast ( )
overridedefault

Member Function Documentation

◆ onMessageReceived

void onMessageReceived ( QByteArray  message)
signal

◆ operator=()

UdpBroadcast & operator= ( const UdpBroadcast )
delete

◆ send()

void send ( const QByteArray &  message)

◆ startListening()

void startListening ( )

◆ stopListening()

void stopListening ( )