52 void Server::initSocket()
58 this, &Server::readPendingDatagrams);
61 void Server::readPendingDatagrams()
63 while (udpSocket->hasPendingDatagrams()) {
65 processTheDatagram(datagram);
The QNetworkDatagram class provides the data and metadata of a UDP datagram.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
The QUdpSocket class provides a UDP socket.