diff options
Diffstat (limited to 'libktorrent/kademlia')
-rw-r--r-- | libktorrent/kademlia/dht.cpp | 2 | ||||
-rw-r--r-- | libktorrent/kademlia/dhttrackerbackend.cpp | 10 | ||||
-rw-r--r-- | libktorrent/kademlia/kbucket.cpp | 4 | ||||
-rw-r--r-- | libktorrent/kademlia/rpccall.cpp | 6 | ||||
-rw-r--r-- | libktorrent/kademlia/rpcserver.cpp | 2 | ||||
-rw-r--r-- | libktorrent/kademlia/task.cpp | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/libktorrent/kademlia/dht.cpp b/libktorrent/kademlia/dht.cpp index 95bcccb..ff14340 100644 --- a/libktorrent/kademlia/dht.cpp +++ b/libktorrent/kademlia/dht.cpp @@ -46,7 +46,7 @@ namespace dht DHT::DHT() : node(0),srv(0),db(0),tman(0) { - connect(&update_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(update())); + connect(&update_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(update())); } diff --git a/libktorrent/kademlia/dhttrackerbackend.cpp b/libktorrent/kademlia/dhttrackerbackend.cpp index f266744..024abd7 100644 --- a/libktorrent/kademlia/dhttrackerbackend.cpp +++ b/libktorrent/kademlia/dhttrackerbackend.cpp @@ -37,9 +37,9 @@ namespace dht DHTTrackerBackend::DHTTrackerBackend(DHTBase & dh_table,kt::TorrentInterface* tor) : dh_table(dh_table),curr_task(0),tor(tor) { - connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onTimeout())); - connect(&dh_table,TQT_SIGNAL(started()),this,TQT_SLOT(manualUpdate())); - connect(&dh_table,TQT_SIGNAL(stopped()),this,TQT_SLOT(dhtStopped())); + connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onTimeout())); + connect(&dh_table,TQ_SIGNAL(started()),this,TQ_SLOT(manualUpdate())); + connect(&dh_table,TQ_SIGNAL(stopped()),this,TQ_SLOT(dhtStopped())); started = false; } @@ -98,8 +98,8 @@ namespace dht const kt::DHTNode & n = tor->getDHTNode(i); curr_task->addDHTNode(n.ip,n.port); } - connect(curr_task,TQT_SIGNAL(dataReady( Task* )),this,TQT_SLOT(onDataReady( Task* ))); - connect(curr_task,TQT_SIGNAL(finished( Task* )),this,TQT_SLOT(onFinished( Task* ))); + connect(curr_task,TQ_SIGNAL(dataReady( Task* )),this,TQ_SLOT(onDataReady( Task* ))); + connect(curr_task,TQ_SIGNAL(finished( Task* )),this,TQ_SLOT(onFinished( Task* ))); return true; } diff --git a/libktorrent/kademlia/kbucket.cpp b/libktorrent/kademlia/kbucket.cpp index e331a51..f8d77c2 100644 --- a/libktorrent/kademlia/kbucket.cpp +++ b/libktorrent/kademlia/kbucket.cpp @@ -345,8 +345,8 @@ namespace dht refresh_task = t; if (refresh_task) { - connect(refresh_task,TQT_SIGNAL(finished( Task* )), - this,TQT_SLOT(onFinished( Task* ))); + connect(refresh_task,TQ_SIGNAL(finished( Task* )), + this,TQ_SLOT(onFinished( Task* ))); } } diff --git a/libktorrent/kademlia/rpccall.cpp b/libktorrent/kademlia/rpccall.cpp index 9ed926a..17a15de 100644 --- a/libktorrent/kademlia/rpccall.cpp +++ b/libktorrent/kademlia/rpccall.cpp @@ -33,7 +33,7 @@ namespace dht RPCCall::RPCCall(RPCServer* rpc,MsgBase* msg,bool queued) : msg(msg),rpc(rpc),queued(queued) { - connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(onTimeout())); + connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(onTimeout())); if (!queued) timer.start(30*1000,true); } @@ -71,8 +71,8 @@ namespace dht void RPCCall::addListener(RPCCallListener* cl) { - connect(this,TQT_SIGNAL(onCallResponse( RPCCall*, MsgBase* )),cl,TQT_SLOT(onResponse( RPCCall*, MsgBase* ))); - connect(this,TQT_SIGNAL(onCallTimeout( RPCCall* )),cl,TQT_SLOT(onTimeout( RPCCall* ))); + connect(this,TQ_SIGNAL(onCallResponse( RPCCall*, MsgBase* )),cl,TQ_SLOT(onResponse( RPCCall*, MsgBase* ))); + connect(this,TQ_SIGNAL(onCallTimeout( RPCCall* )),cl,TQ_SLOT(onTimeout( RPCCall* ))); } } diff --git a/libktorrent/kademlia/rpcserver.cpp b/libktorrent/kademlia/rpcserver.cpp index 571d4d8..960a2d8 100644 --- a/libktorrent/kademlia/rpcserver.cpp +++ b/libktorrent/kademlia/rpcserver.cpp @@ -72,7 +72,7 @@ namespace dht bt::Globals::instance().getPortList().addNewPort(port,net::UDP,true); } sock->setBlocking(false); - connect(sock,TQT_SIGNAL(readyRead()),this,TQT_SLOT(readPacket())); + connect(sock,TQ_SIGNAL(readyRead()),this,TQ_SLOT(readPacket())); } void RPCServer::stop() diff --git a/libktorrent/kademlia/task.cpp b/libktorrent/kademlia/task.cpp index 96e37b4..8dcb521 100644 --- a/libktorrent/kademlia/task.cpp +++ b/libktorrent/kademlia/task.cpp @@ -117,7 +117,7 @@ namespace dht void Task::addDHTNode(const TQString & ip,bt::Uint16 port) { - KResolver::resolveAsync(this,TQT_SLOT(onResolverResults(KResolverResults )), + KResolver::resolveAsync(this,TQ_SLOT(onResolverResults(KResolverResults )), ip,TQString::number(port)); } |