MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / initSocket

Method initSocket

src/WizMobileFileReceiver.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void WizMobileFileReceiver::initSocket()
33{
34 m_udpSocket = new QUdpSocket();
35 m_udpSocket->bind(QHostAddress::Any, 18695);
36
37 connect(m_xmlProcesser, SIGNAL(fileReceived(QString)), SIGNAL(fileReceived(QString)));
38
39 connect(m_udpSocket, SIGNAL(readyRead()),this ,SLOT(readUdpPendingData()), Qt::DirectConnection);
40 connect(this, SIGNAL(connectToHost(QString, quint16)), m_tcpContainer,
41 SLOT(connectToHost(QString, quint16)));
42
43 qDebug() << "Mobile file receiver ready.";
44}
45
46void WizMobileFileReceiver::waitForDone()
47{

Callers

nothing calls this directly

Calls 2

connectFunction · 0.85
bindMethod · 0.80

Tested by

no test coverage detected