Packages that use DHT
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
The I2PSnark web interface (i2psnark.war): servlets and helpers for torrent management, file browsing and configuration.
Uses of DHT in org.klomp.snark
Fields in org.klomp.snark declared as DHTModifier and TypeFieldDescriptionprivate DHTI2PSnarkUtil._dhtThe DHT instance for peer discovery.private final DHTTrackerClient.DHTFetcher.dhtThe DHT to fetch peers from.Methods in org.klomp.snark that return DHTModifier and TypeMethodDescriptionI2PSnarkUtil.getDHT()The main DHT instance, or null if disabled or not started.I2PSnarkUtil.getDHTForTorrent(byte[] ih) The DHT instance for the torrent, on the torrent's own destination, or the shared DHT instance when multi-dest is disabled or the DHT is disabled.Constructors in org.klomp.snark with parameters of type DHTUses of DHT in org.klomp.snark.dht
Classes in org.klomp.snark.dht that implement DHTModifier and TypeClassDescriptionclassKademlia Remote Procedure Call implementation for BitTorrent DHT (BEP 5) adapted for I2P.classA DHT instance for one or more torrents on a shared transient I2P session and destination.Uses of DHT in org.klomp.snark.web
Fields in org.klomp.snark.web declared as DHTModifier and TypeFieldDescription(package private) final DHTI2PSnarkServlet.FooterContext.dhtThe DHT for the debug row, null when DHT is disabled.Methods in org.klomp.snark.web with parameters of type DHTModifier and TypeMethodDescriptionprivate voidI2PSnarkServlet.appendDebugRow(PrintWriter out, DHT dht, String peerParam) Renders the DHT debug row as the second row of the snark footer, hidden unless debug mode (?p=2) is active.Constructors in org.klomp.snark.web with parameters of type DHTModifierConstructorDescription(package private)FooterContext(long[] stats, long totalETA, int total, boolean isConnected, boolean noSnarks, boolean hasPeers, boolean isUploading, DHT dht, boolean standalone, String peerParam) Collects the values the footer renders, so callers do not pass twelve arguments.