summaryrefslogtreecommitdiff
path: root/src/DHTFindNodeMessage.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-19 17:54:54 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-19 17:54:54 +0000
commitcb4e25e4b4a2cfa6349a25586a44c932022e6841 (patch)
tree15c0713df0ca88784a0c95a466e3a846192f290b /src/DHTFindNodeMessage.cc
parent8ba97188ce42be38b5427e9bd70bb7f5ba8238f9 (diff)
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed BDE and bencode
Diffstat (limited to 'src/DHTFindNodeMessage.cc')
-rw-r--r--src/DHTFindNodeMessage.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/DHTFindNodeMessage.cc b/src/DHTFindNodeMessage.cc
index a209dda6..7fbe5639 100644
--- a/src/DHTFindNodeMessage.cc
+++ b/src/DHTFindNodeMessage.cc
@@ -42,7 +42,6 @@
#include "DHTMessageDispatcher.h"
#include "DHTMessageCallback.h"
#include "util.h"
-#include "bencode.h"
namespace aria2 {
@@ -71,11 +70,11 @@ void DHTFindNodeMessage::doReceivedAction()
getMessageDispatcher()->addMessageToQueue(reply);
}
-BDE DHTFindNodeMessage::getArgument()
+SharedHandle<Dict> DHTFindNodeMessage::getArgument()
{
- BDE aDict = BDE::dict();
- aDict[DHTMessage::ID] = BDE(getLocalNode()->getID(), DHT_ID_LENGTH);
- aDict[TARGET_NODE] = BDE(_targetNodeID, DHT_ID_LENGTH);
+ SharedHandle<Dict> aDict = Dict::g();
+ aDict->put(DHTMessage::ID, String::g(getLocalNode()->getID(), DHT_ID_LENGTH));
+ aDict->put(TARGET_NODE, String::g(_targetNodeID, DHT_ID_LENGTH));
return aDict;
}