org.klomp.snark.dht

## Class DHTTracker

- java.lang.Object
- - org.klomp.snark.dht.DHTTracker

-     class DHTTracker
      extends Object

  The tracker stores peers, i.e. Dest hashes (not nodes).

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DHTTracker(I2PAppContext ctx)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) void` | `announce(InfoHash ih, Hash hash, boolean isSeed)`
    `(package private) List<Hash>` | `getPeers(InfoHash ih, int max, boolean noSeeds)` Caller's responsibility to remove himself from the list
    `void` | `renderStatusHTML(StringBuilder buf)` Debug info, HTML formatted
    `void` | `start()`
    `(package private) void` | `stop()`
    `(package private) void` | `unannounce(InfoHash ih, Hash hash)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DHTTracker

          DHTTracker(I2PAppContext ctx)

  - ### Method Detail

    - #### announce

          void announce(InfoHash ih,
                        Hash hash,
                        boolean isSeed)

    - #### getPeers

          List<Hash> getPeers(InfoHash ih,
                              int max,
                              boolean noSeeds)

      Caller's responsibility to remove himself from the list
      Parameters:
        `noSeeds` - true if we do not want seeds in the result
      Returns:
        list or empty list (never null)

    - #### renderStatusHTML

          public void renderStatusHTML(StringBuilder buf)

      Debug info, HTML formatted

    - #### start

          public void start()

    - #### stop

          void stop()

    - #### unannounce

          void unannounce(InfoHash ih,
                          Hash hash)