equal
deleted
inserted
replaced
23 HWNetUdpServer::HWNetUdpServer(QObject *parent, const QString & descr, quint16 port) : |
23 HWNetUdpServer::HWNetUdpServer(QObject *parent, const QString & descr, quint16 port) : |
24 HWNetRegisterServer(parent, descr, port) |
24 HWNetRegisterServer(parent, descr, port) |
25 { |
25 { |
26 pUdpSocket = new QUdpSocket(this); |
26 pUdpSocket = new QUdpSocket(this); |
27 pUdpSocket->bind(46631); |
27 pUdpSocket->bind(46631); |
28 |
|
29 connect(pUdpSocket, SIGNAL(readyRead()), this, SLOT(onClientRead())); |
28 connect(pUdpSocket, SIGNAL(readyRead()), this, SLOT(onClientRead())); |
30 |
|
31 } |
29 } |
32 |
30 |
33 void HWNetUdpServer::onClientRead() |
31 void HWNetUdpServer::onClientRead() |
34 { |
32 { |
35 while (pUdpSocket->hasPendingDatagrams()) { |
33 while (pUdpSocket->hasPendingDatagrams()) { |