PDA

View Full Version : UDP multicast with Qt



madcat
25th April 2006, 21:31
Hi,
I need to listen on an UDP multicast socket with Qt. I initially tried with a QSocketDevice, plus a QSocketNotifier, but the "activated" signal never fired, though it did with a non multicast UDP address. I'm know trying to first create a BSD socket in a C style way, and then to attach it to a QSocket. Anyway, I'm still stucked (hence this message :) ). If I create a BSD socket and attach it to a QSocket, I can't write on it (nothing gets emitted, checked with ethereal). Moreover, the programs hogs the cpu (100%) as soon as I "setSocket" on the QSocket.
Do anyone had a similar experience ? I'd be glad to see your pieces of code.