aboutsummaryrefslogtreecommitdiff
path: root/include/odhtdb/DhtKey.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-16 07:25:22 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit92d6393a34dac4b3d623a5169e2b50a9518b4976 (patch)
treea318cc84e3837f61c03cd4a0533c3380bb5fdbde /include/odhtdb/DhtKey.hpp
parentc0574f16ca7960a3301230ba36ba96148818e229 (diff)
Add functions to send/receive custom messages
Diffstat (limited to 'include/odhtdb/DhtKey.hpp')
-rw-r--r--include/odhtdb/DhtKey.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/odhtdb/DhtKey.hpp b/include/odhtdb/DhtKey.hpp
index 7c30ee3..c3398bf 100644
--- a/include/odhtdb/DhtKey.hpp
+++ b/include/odhtdb/DhtKey.hpp
@@ -9,9 +9,10 @@ namespace odhtdb
{
public:
DhtKey(const Hash &key);
+ DhtKey(const dht::InfoHash &infoHash);
- const dht::InfoHash& getNewDataListenerKey();
- const dht::InfoHash& getRequestOldDataKey();
+ dht::InfoHash getNewDataListenerKey();
+ dht::InfoHash getRequestOldDataKey();
private:
dht::InfoHash infoHash;
unsigned char firstByteOriginalValue;