Class DHTTracker


  • class DHTTracker
    extends Object
    The tracker stores peers, i.e. Dest hashes (not nodes).
    Since:
    0.9.2
    Author:
    zzz
    • Method Detail

      • start

        public void start()
      • stop

        void stop()
      • 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