Expand description
A library for discovering content using the mainline DHT.
This library contains the protocol for announcing and querying content, as well as the client side implementation and a few helpers for p2p quinn connections.
Modules§
- The protocol for communicating with the tracker.
Structs§
Enums§
- A tracker id for queries - either a node id or an address.
Traits§
- A connection provider that can be used to connect to a tracker.
Functions§
- Announce to a tracker.
- Announce to the mainline DHT in parallel.
- Connect to a tracker using the crate::protocol::ALPN protocol, using either a node id or an address.
- Create a quinn client endpoint.
- Assume an existing connection to a tracker and query it for peers for some content.
- Query the mainline DHT for trackers for the given content, then query each tracker for peers.
- Query multiple trackers in parallel and merge the results.
- The mapping from an iroh HashAndFormat to a bittorrent infohash, aka mainline::Id.