Packages that use InfoHash
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.
Uses of InfoHash in org.klomp.snark
Fields in org.klomp.snark with type parameters of type InfoHashModifier and TypeFieldDescriptionTorrentDest._torrentsAssigned torrents by Base64-encoded info hash key, guarded by synchronized methods.Methods in org.klomp.snark with parameters of type InfoHashUses of InfoHash in org.klomp.snark.dht
Subclasses with type arguments of type InfoHash in org.klomp.snark.dhtModifier and TypeClassDescription(package private) classThread-safe collection of all torrents tracked by the DHT.Fields in org.klomp.snark.dht with type parameters of type InfoHashModifier and TypeFieldDescriptionprivate final Map<InfoHash, DHTTracker.FilterCache> DHTTracker._filterCacheCached BEP 33 bloom filters per torrent, keyed by info hash.KRPC._servedTorrentsInfohashes this instance serves tracker queries for, empty when serving all.Methods in org.klomp.snark.dht with parameters of type InfoHashModifier and TypeMethodDescriptionvoidKRPC.addServedTorrent(InfoHash ih) Serve tracker queries for the given infohash in addition to any already served.(package private) voidAnnounce a peer for a torrent.(package private) BloomFilter[]DHTTracker.getBloomFilters(InfoHash ih) Build BEP 33 bloom filters for a torrent, one for the stored seeds and one for the stored peers, by inserting the 32-byte destination hash of each peer into the appropriate filter.Fetch peers for a torrent.private voidKRPC.receiveAnnouncePeer(MsgID msgID, InfoHash ih, byte[] tok, boolean isSeed) Handle and respond to the query.private voidKRPC.receiveGetPeers(MsgID msgID, NodeInfo nInfo, InfoHash ih, boolean noSeeds, boolean scrape) Handle and respond to the query.voidKRPC.removeServedTorrent(InfoHash ih) Stop serving tracker queries for the given infohash.private KRPC.ReplyWaiterKRPC.sendAnnouncePeer(NodeInfo nInfo, InfoHash ih, Token token, boolean isSeed) Send an announce_peer query to a node, on the response port.private KRPC.ReplyWaiterKRPC.sendGetPeers(NodeInfo nInfo, InfoHash ih, boolean noSeeds) Send a get_peers query to a node, on the query port.private booleanWhether tracker queries (get_peers and announce_peer) are served for the given infohash: all infohashes for the main instance in single-dest mode, only the configured torrents for a per-torrent instance.(package private) voidDHTTracker.unannounce(InfoHash ih, Hash hash) Remove a peer from a torrent's peer list.Constructors in org.klomp.snark.dht with parameters of type InfoHashModifierConstructorDescriptionCreates a new token key by combining a node ID with an info hash.Constructor parameters in org.klomp.snark.dht with type arguments of type InfoHashModifierConstructorDescriptionTorrentKRPC(I2PAppContext ctx, KRPC shared, I2PSession session, Collection<InfoHash> ihs) Create a DHT instance on a torrent's transient destination.