MCPcopy Create free account
hub / github.com/aria2/aria2 / getBencodedMessage

Method getBencodedMessage

src/DHTAbstractMessage.cc:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61std::string DHTAbstractMessage::getBencodedMessage()
62{
63 Dict msgDict;
64 msgDict.put(T, getTransactionID());
65 msgDict.put(Y, getType());
66 msgDict.put(V, getVersion());
67 fillMessage(&msgDict);
68 return bencode2::encode(&msgDict);
69}
70
71bool DHTAbstractMessage::send()
72{

Callers 10

Calls 2

encodeFunction · 0.70
putMethod · 0.45

Tested by 10