[Qt-interest] QUdpSocket receiving and sending on the same port/address pair problem
Juan-Pablo Caceres
jcacerec at gmail.com
Wed Apr 22 21:57:06 CEST 2009
Hi,
I am running 2 QUdpSockets on different QThreads (one just receive
packets and the other one just sends them) bounded to the same
port/address pair. If I first bind the sender_socket and then the
receiver_socket, everything works fine. But if I bind first the
receiver_socket, as soon as I bind the sender_socket the receiver_socket
stops working. SocketState is still QAbstractSocket::BoundState, but the
socket just stops seeing new arriving packets (the sender socket keeps
working fine).
I'm using the QUdpSocket::ShareAddress flag on Linux. Any ideas why this
may be happening?
Thanks in advance,
-- Juan-Pablo
More information about the Qt-interest-old
mailing list