Class TrackerReplyAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<com.frostwire.jlibtorrent.swig.tracker_reply_alert>
com.frostwire.jlibtorrent.alerts.TorrentAlert<com.frostwire.jlibtorrent.swig.tracker_reply_alert>
com.frostwire.jlibtorrent.alerts.TrackerAlert<com.frostwire.jlibtorrent.swig.tracker_reply_alert>
com.frostwire.jlibtorrent.alerts.TrackerReplyAlert
All Implemented Interfaces:
Alert<com.frostwire.jlibtorrent.swig.tracker_reply_alert>

public final class TrackerReplyAlert extends TrackerAlert<com.frostwire.jlibtorrent.swig.tracker_reply_alert>
This alert is only for informational purpose. It is generated when a tracker announce succeeds. It is generated regardless what kind of tracker was used, be it UDP, HTTP or the DHT.
  • Constructor Details

    • TrackerReplyAlert

      public TrackerReplyAlert(com.frostwire.jlibtorrent.swig.tracker_reply_alert alert)
  • Method Details

    • numPeers

      public int numPeers()
      Tells how many peers the tracker returned in this response. This is not expected to be more thant the ``num_want`` settings. These are not necessarily all new peers, some of them may already be connected.
      Returns:
      the number of peers