equal
deleted
inserted
replaced
18 |
18 |
19 #include <QUdpSocket> |
19 #include <QUdpSocket> |
20 |
20 |
21 #include "netudpserver.h" |
21 #include "netudpserver.h" |
22 |
22 |
23 HWNetUdpServer::HWNetUdpServer(QObject* parent) : |
23 HWNetUdpServer::HWNetUdpServer(QObject *parent, const QString & descr, quint16 port) : |
24 QObject(parent) |
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 |
28 |
29 connect(pUdpSocket, SIGNAL(readyRead()), this, SLOT(onClientRead())); |
29 connect(pUdpSocket, SIGNAL(readyRead()), this, SLOT(onClientRead())); |