52 void Server::readPendingDatagrams()
54 while (udpSocket->hasPendingDatagrams()) {
57 udpSocket->writeDatagram(datagram.
makeReply(replyData));
63 udpSocket->writeDatagram(std::move(datagram).makeReply(replyData));
The QByteArray class provides an array of bytes.
The QNetworkDatagram class provides the data and metadata of a UDP datagram.
QNetworkDatagram makeReply(const QByteArray &paylaod) const