diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-07-26 10:35:06 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2010-09-01 12:24:43 (GMT) |
commit | 9573b9d9410af07449c2b9179ec9fdcbdbc11518 (patch) | |
tree | 9325580ea8024e178b0c8387895cc030891d9537 /src/network/socket/qudpsocket.cpp | |
parent | 0920ee7d257dd644256187dceab629015398933d (diff) | |
download | Qt-9573b9d9410af07449c2b9179ec9fdcbdbc11518.zip Qt-9573b9d9410af07449c2b9179ec9fdcbdbc11518.tar.gz Qt-9573b9d9410af07449c2b9179ec9fdcbdbc11518.tar.bz2 |
Initial documentation for multicast socket options and API
Diffstat (limited to 'src/network/socket/qudpsocket.cpp')
-rw-r--r-- | src/network/socket/qudpsocket.cpp | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/src/network/socket/qudpsocket.cpp b/src/network/socket/qudpsocket.cpp index 6eb1335..33f8e32 100644 --- a/src/network/socket/qudpsocket.cpp +++ b/src/network/socket/qudpsocket.cpp @@ -330,7 +330,16 @@ bool QUdpSocket::bind(quint16 port, BindMode mode) } /*! - \since 4.6 + \since 4.8 + + Joins the the multicast group specified by \a groupAddress on the default + interface chosen by the operating system. The socket must be in BoundState, + otherwise an error occurs. + + This function returns true if successful; otherwise it returns false + and sets the socket error accordingly. + + \sa leaveMulticastGroup() */ bool QUdpSocket::joinMulticastGroup(const QHostAddress &groupAddress) { @@ -338,8 +347,13 @@ bool QUdpSocket::joinMulticastGroup(const QHostAddress &groupAddress) } /*! - \since 4.6 + \since 4.8 \overload + + Joins the multicast group address \a groupAddress on the interface \a + iface. + + \sa leaveMulticastGroup() */ bool QUdpSocket::joinMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface) @@ -350,7 +364,16 @@ bool QUdpSocket::joinMulticastGroup(const QHostAddress &groupAddress, } /*! - \since 4.6 + \since 4.8 + + Leaves the multicast group specified by \a groupAddress on the default + interface chosen by the operating system. The socket must be in BoundState, + otherwise an error occurs. + + This function returns true if successful; otherwise it returns false and + sets the socket error accordingly. + + \sa joinMulticastGroup() */ bool QUdpSocket::leaveMulticastGroup(const QHostAddress &groupAddress) { @@ -358,8 +381,13 @@ bool QUdpSocket::leaveMulticastGroup(const QHostAddress &groupAddress) } /*! - \since 4.6 + \since 4.8 \overload + + Leaves the multicast group specified by \a groupAddress on the interface \a + iface. + + \sa joinMulticastGroup() */ bool QUdpSocket::leaveMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface) |