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:
penfold42
2016-06-25 23:15:23 +10:00
committed by brindosch
parent 33f1ef457b
commit 0b59614ab3
3 changed files with 30 additions and 11 deletions

View File

@@ -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;
};