Skip to content
Snippets Groups Projects
Commit 0a73b47f authored by bodzsoaa's avatar bodzsoaa
Browse files

Allow multiple MuebReceivers to bind to same port and address

parent e15e46fb
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,9 @@ class MuebReceiverPrivate { ...@@ -14,7 +14,9 @@ class MuebReceiverPrivate {
public: public:
explicit MuebReceiverPrivate(MuebReceiver *receiver) explicit MuebReceiverPrivate(MuebReceiver *receiver)
: frame(configuration.frame()), q_ptr(receiver) { : frame(configuration.frame()), q_ptr(receiver) {
socket.bind(configuration.broadcast_animation_port()); socket.bind(
configuration.broadcast_animation_port(),
QAbstractSocket::ShareAddress | QAbstractSocket::ReuseAddressHint);
QObject::connect(&socket, &QUdpSocket::readyRead, receiver, QObject::connect(&socket, &QUdpSocket::readyRead, receiver,
&MuebReceiver::ReadPendingDatagrams); &MuebReceiver::ReadPendingDatagrams);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment