[Qt-interest] waitForReadyRead() immediate return--why?

Joshua Senecal jgsenecal at yahoo.com
Thu Jul 30 03:18:05 CEST 2009


Hi All,

I'm having a bit of difficulty with a QUdpSocket and waitForReadyRead(). 
The bottom line is, a call to waitForReadyRead() returns immediately 
with true, but a call to getBytesAvailable() returns 0.

Any pointers on what might be causing this? I have one class where 
everything works as expected (waitForReadyRead() blocks until a datagram 
arrives) and in the other class it doesn't. I've gone over the code but 
I don't see any significant differences.

Thanks!

-Josh



More information about the Qt-interest-old mailing list