[Qt-interest] UDP Multicast - Any new news ?
Brad Howes
howes at ll.mit.edu
Wed Jan 6 16:21:25 CET 2010
On Jan 6, 2010, at 10:02 AM, Dan White wrote:
> Searching the lists, I find that UDP Multicast is not (yet) officially supported and I also find several suggestions about hacking the low level socket inside QUdpSocket.
I was at first confused by your post because I use Qt with autodiscovered multicast connections all the time and was unaware of any limitations. Looking at my code, I see that I do the multicast stuff using the ACE framework, and have a QUdpSocket object that is simply a proxy for the ACE socket. The ACE library contains an ACE_SOCK_Dgram_Mcast class which provides for multicast memberships. I just take its "handle" (socket file descriptor) and use it in a QUdpSocket::setSocketDescriptor call. Then, I can use Qt's API and signaling framework.
So, I'm not really "hacking the low-level socket", I'm just giving QUdpSocket one that is already setup for it to use.
Brad
--
Brad Howes
Group 42
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
More information about the Qt-interest-old
mailing list