Guest User

Untitled

a guest
May 21st, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  7.     connect(sock, SIGNAL(readyRead()), this, SLOT(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?
Advertisement
Add Comment
Please, Sign In to add comment