Module operations

Source
Expand description

Functions that use DHT to perform high-level operations on the network.

Structs§

GetPeersResponder
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.
GetPeersResult
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.