UDPListener improvements: (#53)

- if you listen to a multicast address, it now also listens to all ipv4 addresses
- shared udp sockets - multiple hyperiond instance can optionally share the same udp packets
This commit is contained in:
penfold42
2016-06-27 04:08:03 +10:00
committed by brindosch
parent e486b10aa6
commit de39ff8997
3 changed files with 21 additions and 13 deletions

View File

@@ -251,7 +251,8 @@ void HyperionDaemon::startNetworkServices()
udpListenerConfig.get("priority",700).asInt(),
udpListenerConfig.get("timeout",10000).asInt(),
udpListenerConfig.get("address", "").asString(),
udpListenerConfig.get("port", 2801).asUInt()
udpListenerConfig.get("port", 2801).asUInt(),
udpListenerConfig.get("shared", false).asBool()
);
Info(_log, "UDP listener created and started on port %d", _udpListener->getPort());
}