summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qudpsocket.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-07-26 10:48:37 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-09-01 12:24:43 (GMT)
commitafdf40b4c29812fac6ff400479286817bc43bad0 (patch)
tree19dea5f208ccdb6c6870a03e0f1186224622f170 /src/network/socket/qudpsocket.cpp
parent9573b9d9410af07449c2b9179ec9fdcbdbc11518 (diff)
downloadQt-afdf40b4c29812fac6ff400479286817bc43bad0.zip
Qt-afdf40b4c29812fac6ff400479286817bc43bad0.tar.gz
Qt-afdf40b4c29812fac6ff400479286817bc43bad0.tar.bz2
Update QUdpSocket's overview docs to include multicast references
The API is very small, joinMulticastGroup(), leaveMulticastGroup(), and the two QAbstractSocket socket options, MulticastTtlOption and MulticastLoopbackOption.
Diffstat (limited to 'src/network/socket/qudpsocket.cpp')
-rw-r--r--src/network/socket/qudpsocket.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/socket/qudpsocket.cpp b/src/network/socket/qudpsocket.cpp
index 33f8e32..1ff62cc 100644
--- a/src/network/socket/qudpsocket.cpp
+++ b/src/network/socket/qudpsocket.cpp
@@ -77,6 +77,12 @@
\snippet doc/src/snippets/code/src_network_socket_qudpsocket.cpp 0
+ QUdpSocket also supports UDP multicast. Use the joinMulticastGroup() and
+ leaveMulticastGroup() to control group membership, and the
+ QAbstractSocket::MulticastTtlOption and
+ QAbstractSocket::MulticastLoopbackOption to set the TTL and loopback socket
+ options.
+
With QUdpSocket, you can also establish a virtual connection to a
UDP server using connectToHost() and then use read() and write()
to exchange datagrams without specifying the receiver for each