summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qhttpsocketengine_p.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-08-05 10:48:44 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-09-01 12:24:46 (GMT)
commit75a56ce44908eb14ef058d111129ef3d285c5364 (patch)
treed59c138a649140a93ff86b1987e98d1a2e8a322c /src/network/socket/qhttpsocketengine_p.h
parent8082ee277b44a158ce87d646e0d2c1d11e7d8348 (diff)
downloadQt-75a56ce44908eb14ef058d111129ef3d285c5364.zip
Qt-75a56ce44908eb14ef058d111129ef3d285c5364.tar.gz
Qt-75a56ce44908eb14ef058d111129ef3d285c5364.tar.bz2
Add QUdpSocket::setMulticastInterface() and ::multicastInterface()
This API allows the programmer to set/query the outgoing interface for multicast packets for the socket. Both functions need an initialized socket to work. Autotest updated to test setting each interface in the system as the multicast interface for IPv4 and IPv6 UDP sockets.
Diffstat (limited to 'src/network/socket/qhttpsocketengine_p.h')
-rw-r--r--src/network/socket/qhttpsocketengine_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/socket/qhttpsocketengine_p.h b/src/network/socket/qhttpsocketengine_p.h
index 1a6b4f6..b68b7117 100644
--- a/src/network/socket/qhttpsocketengine_p.h
+++ b/src/network/socket/qhttpsocketengine_p.h
@@ -106,6 +106,8 @@ public:
const QNetworkInterface &interface);
bool leaveMulticastGroup(const QHostAddress &groupAddress,
const QNetworkInterface &interface);
+ QNetworkInterface multicastInterface() const;
+ bool setMulticastInterface(const QNetworkInterface &iface);
qint64 readDatagram(char *data, qint64 maxlen, QHostAddress *addr = 0,
quint16 *port = 0);