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 DHT
    Modifier and Type
    Field
    Description
    private DHT
    I2PSnarkUtil._dht
    The DHT instance for peer discovery.
    private final DHT
    TrackerClient.DHTFetcher.dht
    The DHT to fetch peers from.
    Methods in org.klomp.snark that return DHT
    Modifier and Type
    Method
    Description
    I2PSnarkUtil.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 DHT
    Modifier
    Constructor
    Description
    Stores the DHT to fetch from.
  • Uses of DHT in org.klomp.snark.dht

    Classes in org.klomp.snark.dht that implement DHT
    Modifier and Type
    Class
    Description
    class 
    Kademlia Remote Procedure Call implementation for BitTorrent DHT (BEP 5) adapted for I2P.
    class 
    A 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 DHT
    Modifier and Type
    Field
    Description
    (package private) final DHT
    I2PSnarkServlet.FooterContext.dht
    The DHT for the debug row, null when DHT is disabled.
    Methods in org.klomp.snark.web with parameters of type DHT
    Modifier and Type
    Method
    Description
    private void
    I2PSnarkServlet.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 DHT
    Modifier
    Constructor
    Description
    (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.