summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qabstractsocket.h
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-07-22 12:26:45 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-09-01 12:24:41 (GMT)
commit41d8edda671e42c916f45e6eb2716fd76982a121 (patch)
treec5f318806f10fa7b4c6f4f1ca6ef8d84899f3a75 /src/network/socket/qabstractsocket.h
parentb7fae53bf12d61274de7d5131ddc15d8f356df59 (diff)
downloadQt-41d8edda671e42c916f45e6eb2716fd76982a121.zip
Qt-41d8edda671e42c916f45e6eb2716fd76982a121.tar.gz
Qt-41d8edda671e42c916f45e6eb2716fd76982a121.tar.bz2
Add MulticastTtlOption and MulticastLoopbackOption to QAbstractSocket
These options only make sense and work in QUdpSocket when using multicasting. Previously, the loopback was set when joining a multicast group, but the loopback flag is not a per-group flag, it's per socket, hence this change. The ability to set the multicast TTL is needed as well, so this is added as a socket option as well. Autotest updated to test both.
Diffstat (limited to 'src/network/socket/qabstractsocket.h')
-rw-r--r--src/network/socket/qabstractsocket.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/socket/qabstractsocket.h b/src/network/socket/qabstractsocket.h
index 9e487d2..f610db3 100644
--- a/src/network/socket/qabstractsocket.h
+++ b/src/network/socket/qabstractsocket.h
@@ -118,7 +118,9 @@ public:
};
enum SocketOption {
LowDelayOption, // TCP_NODELAY
- KeepAliveOption // SO_KEEPALIVE
+ KeepAliveOption, // SO_KEEPALIVE
+ MulticastTtlOption, // IP_MULTICAST_TTL
+ MulticastLoopbackOption // IP_MULTICAST_LOOPBACK
};
QAbstractSocket(SocketType socketType, QObject *parent);