| Package | Description |
|---|---|
| org.klomp.snark.dht | Distributed Hash Table (DHT) implementation for BitTorrent. |
| Modifier and Type | Field and Description |
|---|---|
static NID | KRPC.FAKE_NIDall-zero NID used for pings |
| Modifier and Type | Method and Description |
|---|---|
static NID | NodeInfo.generateNID(Hash h,
int p,
RandomSource random)Generate a secure NID that matches the Hash and port. |
NID | NodeInfo.getNID() |
| Modifier and Type | Method and Description |
|---|---|
List<NID> | DHTNodes.getExploreKeys()Get random keys to explore for DHT maintenance. |
| Modifier and Type | Method and Description |
|---|---|
NodeInfo | DHTNodes.get(NID nid)Get a node by its ID. |
NodeInfo | DHTNodes.remove(NID nid)Remove a node by its ID. |
boolean | KBTrimmer.trim(KBucket<NID> kbucket,
NID toAdd)Attempts to trim a Kademlia bucket to make room for a new node. |
| Modifier and Type | Method and Description |
|---|---|
boolean | KBTrimmer.trim(KBucket<NID> kbucket,
NID toAdd)Attempts to trim a Kademlia bucket to make room for a new node. |
| Constructor and Description |
|---|
DHTNodes(I2PAppContext ctx,
NID me)Create a new DHTNodes instance. |
NodeInfo(NID nID,
Destination dest,
int port)Use this if we have the full destination. |
NodeInfo(NID nID,
Hash hash,
int port)No Destination yet available. |
TokenKey(NID nID,
InfoHash ih)Creates a new token key by combining a node ID with an info hash. |