diff options
author | Aleksi Lindeman <aleksi_888@hotmail.com> | 2018-01-28 07:35:37 +0100 |
---|---|---|
committer | Aleksi Lindeman <aleksi_888@hotmail.com> | 2018-01-28 07:35:42 +0100 |
commit | 80a9c135b8bdca64246f147f22d98485e0f05ee5 (patch) | |
tree | cbba6fc450225efe357d9597b2afc1e30283fe16 /include/Key.hpp | |
parent | 0fb28e5bc188440236f0b8888fd520892c97094d (diff) |
Add some files...
Diffstat (limited to 'include/Key.hpp')
-rw-r--r-- | include/Key.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/Key.hpp b/include/Key.hpp new file mode 100644 index 0000000..e9f0591 --- /dev/null +++ b/include/Key.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include <opendht/infohash.h> + +namespace odhtdb +{ + class Key + { + public: + Key(const char *key) : hashedKey(dht::InfoHash::get(key)) {} + + dht::InfoHash hashedKey; + }; +}
\ No newline at end of file |