package org.klomp.snark.dht
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
See also: BEP 5 (DHT) • BEP 33 (scrape bloom filters).
- ClassDescriptionA BEP 33 bloom filter used to estimate the size of a DHT swarm from a get_peers response.Shared low-level datagram send path for the DHT and UDP tracker clients.Stub for KRPC.All the nodes we know about, stored as a mapping from node ID to a Destination and Port.The tracker stores peers, i.e.Bloom filters for a torrent, with the time they were built, so the per-query rebuild cost is amortized and the filters are rebuilt once they age out.Represents a BitTorrent info hash used for DHT operations.Kademlia bucket trimmer for DHT node management.Kademlia Remote Procedure Call implementation for BitTorrent DHT (BEP 5) adapted for I2P.Used for both incoming and outgoing message IDs.Node Identifier (NID) for Kademlia DHT operations.Comprehensive node information container for DHT operations.Comparator for finding nodes closest to a target key in the DHT keyspace.Represents a single peer participating in a specific torrent within the DHT tracker.Thread-safe collection of all peers participating in a single torrent.Retrieve / Store the local DHT in a file.DHT token management for secure peer verification.Indexing key for DHT tokens based on node ID and info hash combination.A DHT instance for one or more torrents on a shared transient I2P session and destination.Thread-safe collection of all torrents tracked by the DHT.