krpc_protocol v0.0.2 KRPCProtocol.Decoder
KRPCProtocol.Encoder provides functions to decode mainline DHT messages.
Summary
Functions
This function takes a byte string which is encoded in compact format and extracts the socket address (IPv4, port) and returns it
This function takes the nodes element and extracts all the IPv4 nodes and returns it as a list
This function extracts the Ipv4 address from a ‘get_peers’ response which are sharing the given infohash. (values)
Functions
This function takes a byte string which is encoded in compact format and extracts the socket address (IPv4, port) and returns it.
This function takes the nodes element and extracts all the IPv4 nodes and returns it as a list.
This function extracts the Ipv4 address from a ‘get_peers’ response which are sharing the given infohash. (values)