aboutsummaryrefslogtreecommitdiff
path: root/src/DhtKey.cpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-21 08:26:02 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-21 08:26:06 +0200
commitf2cf653eb9967dc9ee26cbe7a43d1815bd526563 (patch)
treecd0150b07d915767c344aa24f4f2e83fdec2dedb /src/DhtKey.cpp
parentc9cd77556707c9c0d866d206395dd0312deead98 (diff)
Add methods to allow pinging
Diffstat (limited to 'src/DhtKey.cpp')
-rw-r--r--src/DhtKey.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DhtKey.cpp b/src/DhtKey.cpp
index 422b715..1508657 100644
--- a/src/DhtKey.cpp
+++ b/src/DhtKey.cpp
@@ -24,4 +24,10 @@ namespace odhtdb
infoHash[0] = firstByteOriginalValue + 1;
return infoHash;
}
+
+ dht::InfoHash DhtKey::getPingKey()
+ {
+ infoHash[0] = firstByteOriginalValue + 10;
+ return infoHash;
+ }
}