summaryrefslogtreecommitdiff
path: root/src/DHTConstants.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-20 09:10:23 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-03-20 09:10:23 +0000
commit10edc156eabd363e5138d5d974050ea5d7655c30 (patch)
tree5ec68b8c1594c33f8f1651f51c0c7108e72cbf78 /src/DHTConstants.h
parentd6860e11bfb23723241bdf5d5b442ced65d7bc23 (diff)
2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added v key in DHT message. aria2's DHT version is independent of the package version and we defined it as 1 at the moment. It is defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version scheme is "A2"+2bytes DHT version number in network byte order. * src/DHTAbstractMessage.cc * src/DHTConstants.h * src/DHTMessage.cc * src/DHTMessage.h * src/DHTMessageFactoryImpl.cc * src/DHTQueryMessage.cc * src/DHTResponseMessage.cc * src/util.h * test/DHTAnnouncePeerMessageTest.cc * test/DHTAnnouncePeerReplyMessageTest.cc * test/DHTFindNodeMessageTest.cc * test/DHTFindNodeReplyMessageTest.cc * test/DHTGetPeersMessageTest.cc * test/DHTGetPeersReplyMessageTest.cc * test/DHTPingMessageTest.cc * test/DHTPingReplyMessageTest.cc
Diffstat (limited to 'src/DHTConstants.h')
-rw-r--r--src/DHTConstants.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DHTConstants.h b/src/DHTConstants.h
index 85c74e4a..2fbc1106 100644
--- a/src/DHTConstants.h
+++ b/src/DHTConstants.h
@@ -35,6 +35,10 @@
#ifndef _D_DHT_CONSTANTS_H_
#define _D_DHT_CONSTANTS_H_
+// Increment this if major improvements or bug fixes are made in DHT
+// code.
+#define DHT_VERSION 1
+
#define DHT_ID_LENGTH 20
#define DHT_TRANSACTION_ID_LENGTH 2