diff options
Diffstat (limited to 'libktorrent/kademlia')
-rw-r--r-- | libktorrent/kademlia/rpcmsg.h | 4 | ||||
-rw-r--r-- | libktorrent/kademlia/rpcserver.cpp | 4 | ||||
-rw-r--r-- | libktorrent/kademlia/rpcserver.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/libktorrent/kademlia/rpcmsg.h b/libktorrent/kademlia/rpcmsg.h index 68a3367..58f6891 100644 --- a/libktorrent/kademlia/rpcmsg.h +++ b/libktorrent/kademlia/rpcmsg.h @@ -86,13 +86,13 @@ namespace dht virtual void encode(TQByteArray & arr) = 0; /// Set the origin (i.e. where the message came from) - void setOrigin(const KNetwork::KSocketAddress & o) {origin = o;} + void setOrigin(const KNetwork::TDESocketAddress & o) {origin = o;} /// Get the origin const KNetwork::KInetSocketAddress & getOrigin() const {return origin;} /// Set the origin (i.e. where the message came from) - void setDestination(const KNetwork::KSocketAddress & o) {origin = o;} + void setDestination(const KNetwork::TDESocketAddress & o) {origin = o;} /// Get the origin const KNetwork::KInetSocketAddress & getDestination() const {return origin;} diff --git a/libktorrent/kademlia/rpcserver.cpp b/libktorrent/kademlia/rpcserver.cpp index 8839de2..571d4d8 100644 --- a/libktorrent/kademlia/rpcserver.cpp +++ b/libktorrent/kademlia/rpcserver.cpp @@ -157,7 +157,7 @@ namespace dht } - void RPCServer::send(const KNetwork::KSocketAddress & addr,const TQByteArray & msg) + void RPCServer::send(const KNetwork::TDESocketAddress & addr,const TQByteArray & msg) { sock->send(KNetwork::KDatagramPacket(msg,addr)); } @@ -230,7 +230,7 @@ namespace dht return calls.find(mtid); } - void RPCServer::ping(const dht::Key & our_id,const KNetwork::KSocketAddress & addr) + void RPCServer::ping(const dht::Key & our_id,const KNetwork::TDESocketAddress & addr) { Out(SYS_DHT|LOG_NOTICE) << "DHT: pinging " << addr.nodeName() << endl; PingReq* pr = new PingReq(our_id); diff --git a/libktorrent/kademlia/rpcserver.h b/libktorrent/kademlia/rpcserver.h index 387daee..b555fb4 100644 --- a/libktorrent/kademlia/rpcserver.h +++ b/libktorrent/kademlia/rpcserver.h @@ -91,7 +91,7 @@ namespace dht * Ping a node, we don't care about the MTID. * @param addr The address */ - void ping(const dht::Key & our_id,const KNetwork::KSocketAddress & addr); + void ping(const dht::Key & our_id,const KNetwork::TDESocketAddress & addr); /** * Find a RPC call, based on the mtid @@ -106,7 +106,7 @@ namespace dht void readPacket(); private: - void send(const KNetwork::KSocketAddress & addr,const TQByteArray & msg); + void send(const KNetwork::TDESocketAddress & addr,const TQByteArray & msg); void doQueuedCalls(); private: |