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

Refactor MuebReceiverPrivate constructor

parent 15eafcca
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,12 @@ class MuebReceiverPrivate {
Q_DISABLE_COPY(MuebReceiverPrivate)
public:
explicit MuebReceiverPrivate(MuebReceiver *q)
: frame(configuration.frame()), q_ptr(q) {
explicit MuebReceiverPrivate(MuebReceiver *receiver)
: frame(configuration.frame()), q_ptr(receiver) {
socket.bind(configuration.broadcast_animation_port());
QObject::connect(&socket, &QUdpSocket::readyRead, q,
&MuebReceiver::ReadPendingDatagrams);
receiver->connect(&socket, &QUdpSocket::readyRead,
&MuebReceiver::ReadPendingDatagrams);
qInfo() << "[MuebReceiver] UDP Socket will receive packets on port"
<< configuration.broadcast_animation_port();
}
......
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