|
@@ -4,12 +4,12 @@ BcTest::BcTest() : QObject()
|
4
|
4
|
{
|
5
|
5
|
m_bc = new Broadcast(false, this);
|
6
|
6
|
m_serv = new Broadcast(true, this);
|
7
|
|
- connect(m_bc, SIGNAL(serverDiscovered(QHostAddress, quint16)), this, SLOT(newServer(QHostAddress, quint16)));
|
|
7
|
+ connect(m_bc, SIGNAL(serverDiscovered(QHostAddress)), this, SLOT(newServer(QHostAddress)));
|
8
|
8
|
}
|
9
|
9
|
|
10
|
10
|
void BcTest::test()
|
11
|
11
|
{
|
12
|
|
- int ps = 4242, pc = 4241;
|
|
12
|
+ int ps = 6949, pc = 6948;
|
13
|
13
|
if(!m_serv->start(ps, pc))
|
14
|
14
|
{
|
15
|
15
|
qDebug()<<m_serv->getError();
|
|
@@ -22,7 +22,7 @@ void BcTest::test()
|
22
|
22
|
}
|
23
|
23
|
}
|
24
|
24
|
|
25
|
|
-void BcTest::newServer(QHostAddress ad, quint16 port)
|
|
25
|
+void BcTest::newServer(QHostAddress ad)
|
26
|
26
|
{
|
27
|
|
- qDebug()<<"New Server:"<<ad<<port;
|
|
27
|
+ qDebug()<<"New Server:"<<ad;
|
28
|
28
|
}
|