QTfrontend/netudpserver.cpp
changeset 633 9050a949db21
parent 486 7ea71cd3acd5
child 637 8fa7ed5e13bd
equal deleted inserted replaced
632:5e09ae25729f 633:9050a949db21
    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()));