| Package | Description |
|---|---|
| org.klomp.snark.dht |
| Modifier and Type | Field | Description |
|---|---|---|
static NID |
KRPC.FAKE_NID |
all-zero NID used for pings
|
| Modifier and Type | Method | 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 | Description |
|---|---|---|
List<NID> |
DHTNodes.getExploreKeys() |
DHT - get random keys to explore
|
| Modifier and Type | Method | Description |
|---|---|---|
NodeInfo |
DHTNodes.get(NID nid) |
|
NodeInfo |
DHTNodes.remove(NID nid) |
|
boolean |
KBTrimmer.trim(KBucket<NID> kbucket,
NID toAdd) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
KBTrimmer.trim(KBucket<NID> kbucket,
NID toAdd) |
| Constructor | 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) |