summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnativesocketengine_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/qnativesocketengine_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/qnativesocketengine_p.h')
-rw-r--r--src/network/socket/qnativesocketengine_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/socket/qnativesocketengine_p.h b/src/network/socket/qnativesocketengine_p.h
index ce00747..9baacf0 100644
--- a/src/network/socket/qnativesocketengine_p.h
+++ b/src/network/socket/qnativesocketengine_p.h
@@ -128,6 +128,8 @@ public:
const QNetworkInterface &iface);
bool leaveMulticastGroup(const QHostAddress &groupAddress,
const QNetworkInterface &iface);
+ QNetworkInterface multicastInterface() const;
+ bool setMulticastInterface(const QNetworkInterface &iface);
qint64 bytesAvailable() const;
@@ -247,6 +249,8 @@ public:
const QNetworkInterface &iface);
bool nativeLeaveMulticastGroup(const QHostAddress &groupAddress,
const QNetworkInterface &iface);
+ QNetworkInterface nativeMulticastInterface() const;
+ bool nativeSetMulticastInterface(const QNetworkInterface &iface);
qint64 nativeBytesAvailable() const;
bool nativeHasPendingDatagrams() const;