From afdf40b4c29812fac6ff400479286817bc43bad0 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Mon, 26 Jul 2010 12:48:37 +0200 Subject: 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. --- src/network/socket/qudpsocket.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12