summaryrefslogtreecommitdiffstats
path: root/libktorrent/kademlia
diff options
context:
space:
mode:
Diffstat (limited to 'libktorrent/kademlia')
-rw-r--r--libktorrent/kademlia/rpcmsg.cpp6
-rw-r--r--libktorrent/kademlia/rpcmsg.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libktorrent/kademlia/rpcmsg.cpp b/libktorrent/kademlia/rpcmsg.cpp
index 90d2484..b5b2b7d 100644
--- a/libktorrent/kademlia/rpcmsg.cpp
+++ b/libktorrent/kademlia/rpcmsg.cpp
@@ -252,7 +252,7 @@ namespace dht
////////////////////////////////
- PingReq::PingReq(const Key & id) : MsgBase(0xFF,PING,RETQ_MSG,id)
+ PingReq::PingReq(const Key & id) : MsgBase(0xFF,PING,REQ_MSG,id)
{
}
@@ -289,7 +289,7 @@ namespace dht
////////////////////////////////
FindNodeReq::FindNodeReq(const Key & id,const Key & target)
- : MsgBase(0xFF,FIND_NODE,RETQ_MSG,id),target(target)
+ : MsgBase(0xFF,FIND_NODE,REQ_MSG,id),target(target)
{}
FindNodeReq::~FindNodeReq()
@@ -328,7 +328,7 @@ namespace dht
////////////////////////////////
GetPeersReq::GetPeersReq(const Key & id,const Key & info_hash)
- : MsgBase(0xFF,GET_PEERS,RETQ_MSG,id),info_hash(info_hash)
+ : MsgBase(0xFF,GET_PEERS,REQ_MSG,id),info_hash(info_hash)
{}
GetPeersReq::~GetPeersReq()
diff --git a/libktorrent/kademlia/rpcmsg.h b/libktorrent/kademlia/rpcmsg.h
index 58f6891..acdae14 100644
--- a/libktorrent/kademlia/rpcmsg.h
+++ b/libktorrent/kademlia/rpcmsg.h
@@ -40,7 +40,7 @@ namespace dht
enum Type
{
- RETQ_MSG,
+ REQ_MSG,
RSP_MSG,
ERR_MSG,
INVALID