diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-07-26 10:48:37 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-09-01 12:24:43 (GMT) |
commit | afdf40b4c29812fac6ff400479286817bc43bad0 (patch) | |
tree | 19dea5f208ccdb6c6870a03e0f1186224622f170 | |
parent | 9573b9d9410af07449c2b9179ec9fdcbdbc11518 (diff) | |
download | Qt-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.
-rw-r--r-- | src/network/socket/qudpsocket.cpp | 6 |
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 |