1.bool hasPendingDatagrams() const
Returns true if at least one datagram is waiting to be read; otherwise returns false.
2.bool joinMulticastGroup(const QHostAddress &groupAddress)
3.bool joinMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface)
4.bool leaveMulticastGroup(const QHostAddress &groupAddress)
5.bool leaveMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface)
6.QNetworkInterface multicastInterface() const
7.qint64 pendingDatagramSize() const
Returns the size of the first pending UDP datagram. If there is no datagram available, this function returns -1.
8.qint64 readDatagram(char *data, qint64 maxSize, QHostAddress *address = Q_NULLPTR, quint16 *port = Q_NULLPTR)
Receives a datag