TorrentTracker

@Serializable
class TorrentTracker(val url: String, val status: TrackerStatus, val tier: Int, val numPeers: Int, val numSeeds: Int, val numLeeches: Int, val numDownloaded: Int, val msg: String = "")

Constructors

Link copied to clipboard
constructor(url: String, status: TrackerStatus, tier: Int, numPeers: Int, numSeeds: Int, numLeeches: Int, numDownloaded: Int, msg: String = "")

Properties

Link copied to clipboard
val msg: String

Tracker message (there is no way of knowing what this message is - it's up to tracker admins)

Link copied to clipboard
@SerialName(value = "num_downloaded")
val numDownloaded: Int

Number of completed downloads for current torrent, as reported by the tracker

Link copied to clipboard
@SerialName(value = "num_leeches")
val numLeeches: Int

Number of leeches for current torrent, as reported by the tracker

Link copied to clipboard
@SerialName(value = "num_peers")
val numPeers: Int

Number of peers for current torrent, as reported by the tracker

Link copied to clipboard
@SerialName(value = "num_seeds")
val numSeeds: Int

Number of seeds for current torrent, as reported by the tracker

Link copied to clipboard

Tracker status

Link copied to clipboard
@Serializable(with = FlakyIntSerializer::class)
val tier: Int

Tracker priority tier. Lower tier trackers are tried before higher tiers. Tier numbers are valid when >= 0, < 0 is used as placeholder when tier does not exist for special entries (such as DHT).

Link copied to clipboard
val url: String

The tracker URL.