Class DhtDirectResponseAlert

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

public final class DhtDirectResponseAlert extends AbstractAlert<dht_direct_response_alert>
This is posted exactly once for every call to SessionHandle.dhtDirectRequest(UdpEndpoint, Entry, long).

If the request failed, response() will return a default constructed BDecodeNode.

  • Method Details

    • userdata

      public long userdata()
      Returns:
      the user data
    • endpoint

      public UdpEndpoint endpoint()
      Returns:
      the endpoint
    • response

      public BDecodeNode response()
      Returns:
      the response