| Package | Description |
|---|---|
| org.klomp.snark.dht |
Distributed Hash Table (DHT) implementation for BitTorrent.
|
| Modifier and Type | Field and Description |
|---|---|
static NID |
KRPC.FAKE_NID
all-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()
DHT - get random keys to explore
|
| Modifier and Type | Method and Description |
|---|---|
NodeInfo |
DHTNodes.get(NID nid) |
NodeInfo |
DHTNodes.remove(NID nid) |
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) |
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.
|