Expand description
Functions that use DHT to perform high-level operations on the network.
Structs§
- GetPeers
Responder - Represents the response of a node to a get_peers request, including its Id, IP address, and the token it replied with. This is helpful in case we want to follow up with an announce_peer request.
- GetPeers
Result - Represents the results of a get_peers operation
Functions§
- announce_
peer - Announce that you are a peer for a specific info_hash, returning the nodes that were successfully announced to.
- find_
node - Use the DHT to find the closest nodes to the target as possible.
- get_
peers - Use the DHT to retrieve peers for the given info_hash.