PDA

View Full Version : QUdpSocket - how to get destination address of a datagram?



nelliekins
17th September 2009, 09:59
Hi all,

I've set up a QUdpSocket to listen on multiple multicast addresses, and want to be able to distinguish between the destination addresses when datagrams are received. Is there any way to retrieve this information using the existing classes, or will I have to derive a new class from QUdpSocket?

I'm aware that I could create multiple socket instances and share the address / port, but this means I cannot guarantee that I have exclusive access to the socket.

Anyone have a clue? :confused:

Neil.