diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-10-26 12:36:41 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-10-26 12:36:41 +0000 |
| commit | 8a920ba5e38b8a7c43dc088b1837026e69b078f3 (patch) | |
| tree | b36f8ed8a9cc8a39f134cf89bb77fb0fda75bc4e /src/DHTMessageFactory.h | |
| parent | 90c6d5072b70e51ad754c31436abf9479a288769 (diff) | |
2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Changed signature of DHTMessageFactory::createResponseMessage().
Removed unused validateIDMatch.
* src/DHTMessageFactory.h
* src/DHTMessageFactoryImpl.cc
* src/DHTMessageFactoryImpl.h
* src/DHTMessageTracker.cc
* test/DHTMessageFactoryImplTest.cc
* test/MockDHTMessageFactory.h
Dropped DHT message coming from same ID of localhost.
* src/DHTMessageReceiver.cc
Rejected adding node whose ID is the same as localhost's.
* src/DHTRoutingTable.cc
* test/BtPortMessageTest.cc
* test/DHTRoutingTableTest.cc
Diffstat (limited to 'src/DHTMessageFactory.h')
| -rw-r--r-- | src/DHTMessageFactory.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/DHTMessageFactory.h b/src/DHTMessageFactory.h index 3c04eda0..157e7322 100644 --- a/src/DHTMessageFactory.h +++ b/src/DHTMessageFactory.h @@ -36,11 +36,13 @@ #define _D_DHT_MESSAGE_FACTORY_H_ #include "common.h" -#include "SharedHandle.h" -#include "A2STR.h" + #include <string> #include <deque> +#include "SharedHandle.h" +#include "A2STR.h" + namespace aria2 { class DHTMessage; @@ -59,7 +61,7 @@ public: virtual SharedHandle<DHTMessage> createResponseMessage(const std::string& messageType, const Dictionary* d, - const SharedHandle<DHTNode>& remoteNode) = 0; + const std::string& ipaddr, uint16_t port) = 0; virtual SharedHandle<DHTMessage> createPingMessage(const SharedHandle<DHTNode>& remoteNode, |
