Skip to main content

Module tracker

Module tracker 

Source
Expand description

Tracker protocol codecs.

  • HTTP tracker (BEP-3): announce/scrape URL construction and bencoded response parsing (compact + dict peer lists).
  • UDP tracker (BEP-15): connect/announce/scrape request builders and response parsers.

The actual HTTP transport is delegated to the host (crate::platform::Host::http_get, implemented with courierust on the std host); UDP transport goes through crate::platform::Host::udp_send/udp_recv.

Modules§

udp
UDP tracker protocol (BEP-15).

Structs§

AnnounceParams
Announce parameters.
TrackerResponse
Parsed tracker response.

Enums§

Event
Announce event (BEP-3 / BEP-15).

Functions§

build_http_announce_url
Build an HTTP announce URL.
build_http_scrape_url
Build an HTTP scrape URL (one or more hashes).
parse_tracker_list
Parse a plain-text tracker list (one URL per line, # comments allowed) — the format served by https://cf.trackerslist.com/best.txt.
parse_tracker_response
Parse a bencoded tracker response.
validate_http_tracker
Validate an HTTP tracker endpoint with courierust’s URI parser (scheme must be http/https).