[Qt-interest] QUdpSocket receiving and sending on the same port/address pair problem

Juan-Pablo Caceres jcacerec at gmail.com
Tue Apr 28 00:11:31 CEST 2009


Anyone having similar problems?

On 4/22/09 12:57 PM, Juan-Pablo Caceres wrote:
> 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