qt5base-lts/examples/network/multicastreceiver
Robin Burchell c82d40749d Fix multicast join/leave when binding to QHostAddress::Any.
On OS X and Windows, this was not working, because the socket was being bound
in v6 mode (due to ::Any being for dual mode), but the address passed was a v4
address, meaning it took the wrong codepath. Linux, strangely, apparently works
anyway.

This is fixable in OS X (by using the v6 join path when bound in v6/dual mode),
but the same fix doesn't work on Windows, failing with WSAEADDRNOTAVAIL.

Don't allow this behaviour, and provide a sane error message telling the user
what to do instead.

Done-with: Shane Kearns
Task-number: QTBUG-25047
Change-Id: Iaf5bbee82e13ac92e11b60c558f5af9ce26f474b
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
2012-04-02 12:49:38 +02:00
..
main.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
multicastreceiver.pro QtBase examples: Remove Maemo/Symbian-specific code. 2011-10-18 15:47:49 +02:00
receiver.cpp Fix multicast join/leave when binding to QHostAddress::Any. 2012-04-02 12:49:38 +02:00
receiver.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00