mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
native UDP listener enhancements (#48)
- uses new logger - can specifiy which ip address to listen on - if its a multicast address, multicast is enabled
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
// Hyperion includes
|
||||
#include <hyperion/Hyperion.h>
|
||||
#include <utils/Logger.h>
|
||||
|
||||
class UDPClientConnection;
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
/// @param hyperion Hyperion instance
|
||||
/// @param port port number on which to start listening for connections
|
||||
///
|
||||
UDPListener(const int priority, const int timeout, uint16_t port = 2801);
|
||||
UDPListener(const int priority, const int timeout, const std::string& address, quint16 listenPort);
|
||||
~UDPListener();
|
||||
|
||||
///
|
||||
@@ -59,4 +60,7 @@ private:
|
||||
|
||||
/// The latest led color data
|
||||
std::vector<ColorRgb> _ledColors;
|
||||
|
||||
/// Logger instance
|
||||
Logger * _log;
|
||||
};
|
||||
|
Reference in New Issue
Block a user