## Uses of Class
org.klomp.snark.dht.NID

- Packages that use NID
  Package | Description
  --- | ---
  org.klomp.snark.dht | Distributed Hash Table (DHT) implementation for BitTorrent.

- - ### Uses of NID in org.klomp.snark.dht

    Fields in org.klomp.snark.dht declared as NID
    Modifier and Type | Field and Description
    --- | ---
    `static NID` | KRPC.`FAKE_NID` all-zero NID used for pings

    Methods in org.klomp.snark.dht that return NID
    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()`

    Methods in org.klomp.snark.dht that return types with arguments of type NID
    Modifier and Type | Method and Description
    --- | ---
    `List<NID>` | DHTNodes.`getExploreKeys()` DHT - get random keys to explore

    Methods in org.klomp.snark.dht with parameters of type NID
    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.

    Method parameters in org.klomp.snark.dht with type arguments of type NID
    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.

    Constructors in org.klomp.snark.dht with parameters of type NID
    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.