See: Description
| Interface | Description |
|---|---|
| DHT | Stub for KRPC |
| Class | Description |
|---|---|
| BloomFilter | A BEP 33 bloom filter used to estimate the size of a DHT swarm from a
get_peers response. |
| DatagramSender | Shared low-level datagram send path for the DHT and UDP tracker clients. |
| DHTNodes | All the nodes we know about, stored as a mapping from node ID to a Destination and Port. |
| DHTTracker | The tracker stores peers, i.e. |
| InfoHash | Represents a BitTorrent info hash used for DHT operations. |
| KBTrimmer | Kademlia bucket trimmer for DHT node management. |
| KRPC | Kademlia Remote Procedure Call implementation for BitTorrent DHT (BEP 5) adapted for I2P. |
| MsgID | Used for both incoming and outgoing message IDs |
| NID | Node Identifier (NID) for Kademlia DHT operations. |
| NodeInfo | Comprehensive node information container for DHT operations. |
| NodeInfoComparator | Comparator for finding nodes closest to a target key in the DHT keyspace. |
| Peer | Represents a single peer participating in a specific torrent within the DHT tracker. |
| Peers | Thread-safe collection of all peers participating in a single torrent. |
| PersistDHT | Retrieve / Store the local DHT in a file. |
| Token | DHT token management for secure peer verification. |
| TokenKey | Indexing key for DHT tokens based on node ID and info hash combination. |
| TorrentKRPC | A DHT instance for one or more torrents on a shared transient I2P session and
destination. |
| Torrents | Thread-safe collection of all torrents tracked by the DHT. |
Distributed Hash Table (DHT) implementation for BitTorrent.
This package provides a DHT implementation based on the Mainline DHT protocol, allowing I2PSnark to discover peers and find torrents without relying on centralized trackers. The DHT enables decentralized peer discovery and improved download performance.
Key components:
The DHT implementation follows the BEP 5 specification and integrates seamlessly with I2P's anonymous networking layer to provide private, decentralized peer discovery.