Home
last modified time | relevance | path

Searched refs:compactlen (Results 1 – 8 of 8) sorted by relevance

/dports/www/aria2/aria2-1.36.0/src/
H A DDHTRoutingTableDeserializer.cc160 const int compactlen = bittorrent::getCompactLength(family_); in deserialize() local
165 if (peerInfoLen != compactlen) { in deserialize()
173 readBytes(fp, buf, buf.size(), compactlen); in deserialize()
174 if (memcmp(zero, buf, compactlen) == 0) { in deserialize()
176 readBytes(fp, buf, buf.size(), 48 - compactlen); in deserialize()
183 readBytes(fp, buf, buf.size(), 48 - compactlen); in deserialize()
187 readBytes(fp, buf, buf.size(), 24 - compactlen); in deserialize()
H A DDHTGetPeersReplyMessage.cc92 auto compactlen = bittorrent::packcompact( in getResponse() local
96 if (clen >= 0 && compactlen == cclen) { in getResponse()
98 last = std::copy_n(std::begin(compact), compactlen, last); in getResponse()
134 auto compactlen = bittorrent::packcompact( in getResponse() local
138 if (clen > 0 && compactlen == cclen) { in getResponse()
139 valuesList->append(String::g(compact.data(), compactlen)); in getResponse()
H A DUTPexExtensionMessage.cc105 int compactlen = bittorrent::packcompact(compact, (*itr)->getIPAddress(), in createCompactPeerListAndFlag() local
107 if (compactlen == COMPACT_LEN_IPV4) { in createCompactPeerListAndFlag()
108 addrstring.append(&compact[0], &compact[compactlen]); in createCompactPeerListAndFlag()
111 else if (compactlen == COMPACT_LEN_IPV6) { in createCompactPeerListAndFlag()
112 addrstring6.append(&compact[0], &compact[compactlen]); in createCompactPeerListAndFlag()
H A DDHTFindNodeReplyMessage.cc87 int compactlen = in getResponse() local
89 if (compactlen == clen) { in getResponse()
90 memcpy(buffer + 20 + offset, compact, compactlen); in getResponse()
H A DDHTTokenTracker.cc70 int compactlen = bittorrent::packcompact(src + DHT_ID_LENGTH, ipaddr, port); in generateToken() local
71 if (compactlen == 0) { in generateToken()
H A DDHTRoutingTableSerializer.cc131 int compactlen = bittorrent::packcompact(compactPeer, node->getIPAddress(), in serialize() local
133 if (compactlen != clen) { in serialize()
H A DPeerInteractionCommand.cc107 int compactlen = bittorrent::packcompact(compact, getPeer()->getIPAddress(), local
109 if (compactlen == COMPACT_LEN_IPV6) {
H A Dbittorrent_helper.cc640 int compactlen = packcompact(compact, ipaddr, 0); in computeFastSet() local
641 if (compactlen != COMPACT_LEN_IPV4) { in computeFastSet()