8 #include <QHostAddress> 9 #include <QJsonDocument> 12 #include <utils/Logger.h> 13 #include <utils/Components.h> 14 #include <utils/ColorRgb.h> 17 #include <utils/settings.h> 77 const bool setGlobalInput(
const int priority,
const std::vector<ColorRgb>& ledColors,
const int timeout_ms = -1,
const bool& clearEffect =
true);
83 void readPendingDatagrams();
84 void processTheDatagram(
const QByteArray * datagram,
const QHostAddress * sender);
106 QHostAddress _listenAddress;
107 uint16_t _listenPort;
108 QAbstractSocket::BindFlag _bondage;
void handleSettingsUpdate(const settings::type &type, const QJsonDocument &config)
Handle settings update from Hyperion Settingsmanager emit or this constructor.
Definition: UDPListener.cpp:142
const bool setGlobalInput(const int priority, const std::vector< ColorRgb > &ledColors, const int timeout_ms=-1, const bool &clearEffect=true)
forward led data to HyperionDaemon
void registerGlobalInput(const int priority, const hyperion::Components &component, const QString &origin="System", const QString &owner="", unsigned smooth_cfg=0)
forward register data to HyperionDaemon
uint16_t getPort() const
Definition: UDPListener.cpp:104
void stop()
close server
Definition: UDPListener.cpp:81
UDPListener(const QJsonDocument &config)
UDPListener constructor.
Definition: UDPListener.cpp:17
Definition: bonjourserviceregister.h:43
Components
Enumeration of components in Hyperion.
Definition: Components.h:10
void start()
bind server to network
Definition: UDPListener.cpp:41
This class creates a UDP server which accepts connections from boblight clients.
Definition: UDPListener.h:25
bool active()
Definition: UDPListener.h:46