mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
dht: improve token serialization
This commit is contained in:
1 parent
d718b66aad
commit
ff2df41c76
1 file changed
+2
-3
+2
-3
@@ -3062,9 +3062,8 @@ Dht::sendGetValues(const sockaddr *sa, socklen_t salen,
|
||||
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());
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in new issue
Block a user