mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
delete packet processing methods in dht.cpp
This commit is contained in:
1 parent
9e950c8fed
commit
48512bfd0f
3 files changed
+35
-1136
No files matched your search
@@ -56,9 +56,8 @@ NetworkEngine::processMessage(const uint8_t *buf, size_t buflen, const sockaddr
|
||||
void
|
||||
packToken(msgpack::packer<msgpack::sbuffer>& pk, Blob token)
|
||||
{
|
||||
pk.pack_array(token.size());
|
||||
for (uint8_t b : token)
|
||||
pk.pack(b);
|
||||
pk.pack_bin(token.size());
|
||||
pk.pack_bin_body((char*)token.data(), token.size());
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user