[Development] Question on using multiple multicast receives on same channel in one program

Thiago Macieira thiago.macieira at intel.com
Tue May 30 19:00:00 CEST 2017


On Tuesday, 30 May 2017 03:59:46 PDT wim delvaux wrote:
> Well I created multiple QObjects, in each created a QUdpSocket and
> connected it to the same adress/port.
> 
> I was hoping that all of the connected objects would receive all incoming
> data (multicast copies I thought) but it seems only one object gets the
> data.

When you called bind(), did all of them return true?

Did you remember to allow reusing the port number? Pass the 
QUdpSocket::ShareAddress flag to bind().

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list