diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-05-21 08:26:02 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-05-21 08:26:06 +0200 |
commit | f2cf653eb9967dc9ee26cbe7a43d1815bd526563 (patch) | |
tree | cd0150b07d915767c344aa24f4f2e83fdec2dedb /src/DhtKey.cpp | |
parent | c9cd77556707c9c0d866d206395dd0312deead98 (diff) |
Add methods to allow pinging
Diffstat (limited to 'src/DhtKey.cpp')
-rw-r--r-- | src/DhtKey.cpp | 6 |
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; + } } |