QTfrontend/netudpwidget.cpp
changeset 417 bc7fea9abd9c
parent 416 595d8663254d
child 421 ebd79d171804
equal deleted inserted replaced
416:595d8663254d 417:bc7fea9abd9c
    10 {
    10 {
    11   serversList = new QListWidget(this);
    11   serversList = new QListWidget(this);
    12   mainLayout.addWidget(serversList);
    12   mainLayout.addWidget(serversList);
    13   pUdpSocket = new QUdpSocket(this);
    13   pUdpSocket = new QUdpSocket(this);
    14 
    14 
    15   pUdpSocket->bind(46632, QUdpSocket::ShareAddress);
    15   pUdpSocket->bind();
    16   connect(pUdpSocket, SIGNAL(readyRead()), this, SLOT(onClientRead()));
    16   connect(pUdpSocket, SIGNAL(readyRead()), this, SLOT(onClientRead()));
    17   updateList();
    17   updateList();
    18 }
    18 }
    19 
    19 
    20 void HWNetUdpWidget::updateList()
    20 void HWNetUdpWidget::updateList()