Class DhtOutgoingGetPeersAlert

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

public final class DhtOutgoingGetPeersAlert extends AbstractAlert<dht_outgoing_get_peers_alert>
This alert is generated when we send a get_peers request. It belongs to the dht_notification category.
  • Method Details

    • infoHash

      public Sha1Hash infoHash()
      the info_hash of the torrent we're looking for peers for.
      Returns:
    • obfuscatedInfoHash

      public Sha1Hash obfuscatedInfoHash()
      if this was an obfuscated lookup, this is the info-hash target actually sent to the node.
      Returns:
    • endpoint

      public UdpEndpoint endpoint()
      The endpoint we're sending this query to.
      Returns:
      the endpoint