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 | - | |
| 6 | + | |
| 7 | - | // Handle possibly missed readyRead signal |
| 7 | + | |
| 8 | - | OnPacketReceived(); |
| 8 | + | |
| 9 | // readyRead won't fire unless some NEW data is received, therefore, my OnPacketReceived loop | |
| 10 | // won't run, right? readyRead won't fire (again) until I drain the datagram queue, right? |