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

@@ -5,6 +5,7 @@
#include <QLocale>
#include <QFile>
#include <QHostInfo>
#include <QHostAddress>
#include <cstdint>
#include <limits>
@@ -249,6 +250,7 @@ void HyperionDaemon::startNetworkServices()
_udpListener = new UDPListener(
udpListenerConfig.get("priority",700).asInt(),
udpListenerConfig.get("timeout",10000).asInt(),
udpListenerConfig.get("address", "").asString(),
udpListenerConfig.get("port", 2801).asUInt()
);
Info(_log, "UDP listener created and started on port %d", _udpListener->getPort());