Class DhtSampleInfohashesAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<dht_sample_infohashes_alert>
com.frostwire.jlibtorrent.alerts.DhtSampleInfohashesAlert
All Implemented Interfaces:
Alert<dht_sample_infohashes_alert>

public final class DhtSampleInfohashesAlert extends AbstractAlert<dht_sample_infohashes_alert>
  • Method Details

    • endpoint

      public UdpEndpoint endpoint()
    • interval

      public long interval()
    • numInfohashes

      public int numInfohashes()
      This value indicates how many infohash keys are currently in the node's storage.

      If the value is larger than the number of returned samples it indicates that the indexer may obtain additional samples after waiting out the interval.

      Returns:
      how many infohash keys are currently in the node's storage
    • numSamples

      public int numSamples()
    • samples

      public List<Sha1Hash> samples()
    • numNodes

      public int numNodes()
      The total number of nodes returned by nodes().
      Returns:
      the number of nodes
    • nodes

      public List<Pair<Sha1Hash, UdpEndpoint>> nodes()
      This is the set of more DHT nodes returned by the request.

      The information is included so that indexing nodes can perform a keyspace traversal with a single RPC per node by adjusting the target value for each RPC.

      Returns:
      the set of more DHT nodes returned by the request