Class DhtMutableItemAlert

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

public final class DhtMutableItemAlert extends AbstractAlert<dht_mutable_item_alert>
This alert is posted as a response to a call to session::get_item(), specifically the overload for looking up mutable items in the DHT.
  • Method Details

    • key

      public byte[] key()
      The public key that was looked up.
      Returns:
    • signature

      public byte[] signature()
      The signature of the data. This is not the signature of the plain encoded form of the item, but it includes the sequence number and possibly the hash as well. See the dht_store document for more information. This is primarily useful for echoing back in a store request.
      Returns:
    • seq

      public long seq()
      The sequence number of this item.
      Returns:
    • salt

      public byte[] salt()
      The salt, if any, used to lookup and store this item. If no salt was used, this is an empty string.
      Returns:
    • item

      public Entry item()
      The data for this item.
      Returns: