[Qt-interest] QUdpSocket : does not receive packets unless it sends first

wim.delvaux at adaptiveplanet.com wim.delvaux at adaptiveplanet.com
Mon Jan 12 14:18:44 CET 2009


Hi all,

I have done something like this :

Socket = new QUdpSocket();

Socket->bind( SomePort );

connect( Socket, SIGNAL(readyRead()), ... )

Now I have a device on the network that sends UDP packets to my IP and the 
port I bound to (i can see the packets in wireshare).

However I never get a readyReady signal.

When I do :

Socket->writeDatagram( .... )

to the device and the device replies (using the same IP and Port) I 'DO'
get a readyRead with the device's response.

What might be wrong ?

Thx
W



More information about the Qt-interest-old mailing list