add NetworkEngine::processMessage

This commit is contained in:
Simon Désaulniers authored and Adrien Béraud committed 2016-05-02 15:25:14 -04:00
1 parent 2a61d79b42
commit f93fb92ff5
6 files changed
+363 -186

No files matched your search

+7
View File
@@ -21,6 +21,13 @@
namespace dht {
static constexpr InfoHash zeroes {};
static constexpr InfoHash ones = {std::array<uint8_t, HASH_LEN>{{
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF
}}};
std::string
dht::print_addr(const sockaddr* sa, socklen_t slen)
{