摘要:
udpSocket = new QUdpSocket(this); QByteArray datagram = "blog.const.net.cn"; udpSocket->writeDatagram(datagram.data(), datagram.size(), QHostAddress::Broadcast, 45454); udpSocket->bind(QHostAddress("192.168.1.104"), 45454); UDP客户端广播QUdpSocket *udpsocket1 = new QUdpSocket(th 阅读全文