AnnounceResponse

data class AnnounceResponse(val interval: Int, val leechers: Int, val seeders: Int, val peers: List<PeerEndpoint>, val minInterval: Int = DEFAULT_MIN_INTERVAL, val trackerId: String = "")

A tracker's response to an announce. This is the announce-relevant subset of libtorrent's tracker_response.

Constructors

Link copied to clipboard
constructor(interval: Int, leechers: Int, seeders: Int, peers: List<PeerEndpoint>, minInterval: Int = DEFAULT_MIN_INTERVAL, trackerId: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

seconds the client should wait before re-announcing (libtorrent resp.interval).

Link copied to clipboard

number of incomplete peers (downloaders) the tracker knows of, i.e. libtorrent's resp.incomplete. -1 if the tracker did not report it.

Link copied to clipboard

the minimum seconds the client must wait before re-announcing, even when re-announcing early on a peer-shortage or a manual trigger (libtorrent resp.min_interval, BEP-3 min interval). Defaults to DEFAULT_MIN_INTERVAL (30s) when the tracker omits it, matching libtorrent.

Link copied to clipboard

the peer endpoints the tracker returned.

Link copied to clipboard

number of complete peers (seeds), libtorrent's resp.complete. -1 if not reported.

Link copied to clipboard

the opaque tracker id the HTTP tracker asked us to echo on the next announce (libtorrent resp.trackerid). Empty when not present; UDP trackers never set it.