View difference between Paste ID: haXhuhTp and 0pp7Uu23
SHOW: | | - or go back to the newest paste.
1
    sock = new QUdpSocket(this);
2
    if (!sock->bind(0))
3
        return false;
4
5
    // Pretend some data is received here... readyRead not connected yet though
6
    // readyRead would fire here but it's not connect'ed yet...
7
8
    connect(sock, SIGNAL(readyRead()), this, SLOT(OnPacketReceived()));
9-
    // readyRead won't fire unless some NEW data is received, therefore, my OnPacketReceived loop
9+
10-
    // won't run, right? readyRead won't fire (again) until I drain the datagram queue, right?
10+
    // readyRead won't fire until I drain the datagram queue, therefore I never get readyRead, right?