Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, February 2007
Threaded UDP Receiver Problem


Message 1 in thread

I've got a display program that receives data from multiple sources  
over UDP (multicast really). The receivers run in their own thread.  
Everything starts out just fine. I see data on all of the channels,  
and I have no problem keeping up with the traffic flow (no drops),  
and no memory leaks. However, after some variable amount of time, a  
channel will no longer receive data -- the QUdpSocket no longer emits  
the readyRead signal. And after awhile, another channel will no  
longer signal new data. Everything in the GUI works just fine, just  
no data. Of course, restarting the app shows all channels alive with  
data.

Any ideas? I'm thinking of removing the event loops in the threads  
and just doing blocking reads on the socket.

Brad

-- 
 [ signature omitted ]