| Package | Description |
|---|---|
| org.klomp.snark | I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced to add a web UI, DHT support, and other features. |
| org.klomp.snark.dht | Distributed Hash Table (DHT) implementation for BitTorrent. |
| Modifier and Type | Method and Description |
|---|---|
void | TorrentDest.assign(String key,
InfoHash ih,
String name)Assign a torrent to this destination, serving its infohash on the DHT instance when
one already runs, and updating the pool tooltip and tunnel nickname. |
| Modifier and Type | Method and Description |
|---|---|
void | KRPC.addServedTorrent(InfoHash ih)Serve tracker queries for the given infohash in addition to any already
served. |
(package private) void | DHTTracker.announce(InfoHash ih,
Hash hash,
boolean isSeed)Announce 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. |
(package private) List<Hash> | DHTTracker.getPeers(InfoHash ih,
int max,
boolean noSeeds)Fetch peers for a torrent. |
void | KRPC.removeServedTorrent(InfoHash ih)Stop serving tracker queries for the given infohash. |
(package private) void | DHTTracker.unannounce(InfoHash ih,
Hash hash)Remove a peer from a torrent's peer list. |
| Constructor and Description |
|---|
TokenKey(NID nID,
InfoHash ih)Creates a new token key by combining a node ID with an info hash. |
| Constructor and Description |
|---|
TorrentKRPC(I2PAppContext ctx,
KRPC shared,
I2PSession session,
Collection<InfoHash> ihs)Create a DHT instance on a torrent's transient destination. |