[PyQt] QUdpSocket.joinMulticastGroup

Phil Thompson phil at riverbankcomputing.com
Thu Dec 22 21:45:32 GMT 2011


On Thu, 22 Dec 2011 22:09:02 +0100, David Kaufman <david.kaufman at gmx.de>
wrote:
> Hi there,
> 
> I'm currently developing a chat program where I'm sending Multicast
> Messages. In order to do this, I beleive I have to join a multicast
> group.
> The Qt docs state clearly that there is such a function:
> http://developer.qt.nokia.com/doc/qt-4.8/qudpsocket.html
> 
> The relevant code snippet: (full:
>
http://developer.qt.nokia.com/doc/qt-4.8/network-multicastsender-sender-cpp.html)
> udpSocket = new QUdpSocket(this);
> udpSocket->bind(45454, QUdpSocket::ShareAddress);
> udpSocket->joinMulticastGroup(groupAddress);
> 
> Unfortunately there is no such method in the current PyQt4
> implementation. Why is this the case?

Because it was added in Qt v4.8.

> Will this method eventually be
> available?

When v4.9 is released tomorrow.

Phil


More information about the PyQt mailing list