Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sock = new QUdpSocket(this);
- if (!sock->bind(0))
- return false;
- // Pretend some data is received here... readyRead not connected yet though
- connect(sock, SIGNAL(readyRead()), this, SLOT(OnPacketReceived()));
- // readyRead won't fire unless some NEW data is received, therefore, my OnPacketReceived loop
- // won't run, right? readyRead won't fire (again) until I drain the datagram queue, right?
Advertisement
Add Comment
Please, Sign In to add comment