hyperion.ng
Public Slots | Signals | Public Member Functions | List of all members
UDPListener Class Reference

This class creates a UDP server which accepts connections from boblight clients. More...

#include <UDPListener.h>

Inheritance diagram for UDPListener:

Public Slots

void start ()
 bind server to network
 
void stop ()
 close server
 
void componentStateChanged (const hyperion::Components component, bool enable)
 
void handleSettingsUpdate (const settings::type &type, const QJsonDocument &config)
 Handle settings update from Hyperion Settingsmanager emit or this constructor. More...
 

Signals

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
 
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
 

Public Member Functions

 UDPListener (const QJsonDocument &config)
 UDPListener constructor. More...
 
uint16_t getPort () const
 
bool active ()
 

Detailed Description

This class creates a UDP server which accepts connections from boblight clients.

Constructor & Destructor Documentation

§ UDPListener()

UDPListener::UDPListener ( const QJsonDocument &  config)

UDPListener constructor.

Parameters
hyperionHyperion instance
portport number on which to start listening for connections

Member Function Documentation

§ active()

bool UDPListener::active ( )
inline
Returns
true if server is active (bind to a port)

§ getPort()

uint16_t UDPListener::getPort ( ) const
Returns
the port number on which this UDP listens for incoming connections

§ handleSettingsUpdate

void UDPListener::handleSettingsUpdate ( const settings::type &  type,
const QJsonDocument &  config 
)
slot

Handle settings update from Hyperion Settingsmanager emit or this constructor.

Parameters
typesettingyType from enum
configconfiguration object

The documentation for this class was generated from the following files: