AnnounceRequest
data class AnnounceRequest(val infoHash: Sha1Hash, val peerId: PeerId, val port: Int, val uploaded: Long, val downloaded: Long, val left: Long, val event: TrackerEvent = TrackerEvent.NONE, val numWant: Int = -1, val key: Int = 0, val ip: Int = 0, val trackerId: String = "")
The parameters of a tracker announce, independent of whether it will be sent over HTTP or UDP. Mirrors the announce-relevant subset of libtorrent's tracker_request.
Constructors
Properties
Link copied to clipboard
total bytes downloaded this session.
Link copied to clipboard
the announce event.
Link copied to clipboard
the opaque &trackerid= value an HTTP tracker previously handed us in a tracker id response field, echoed back on subsequent announces (libtorrent tracker_req().trackerid). Empty means "none captured yet" and the parameter is omitted from the query. UDP trackers have no such field, so this is ignored by the UDP codec.