Skip to main content

Module http_tracker_client

Module http_tracker_client 

Source
Expand description

HTTP/HTTPS Tracker Client with Event State Machine

This module provides a stateful tracker client that supports both HTTP and HTTPS tracker URLs, with proper event lifecycle management (Started -> Completed -> Stopped).

§Event State Machine

The tracker follows a well-defined event sequence:

  • Started: Sent when download begins (first announce)
  • Completed: Sent when all pieces are downloaded successfully
  • Stopped: Sent when download is cancelled or removed
  • None: Regular interval announces (no specific event)

Structs§

TrackerState
State machine for tracking announce events and intervals.

Enums§

TrackerEvent
Tracker announce events as defined in BEP 3 / BEP 15.

Functions§

build_tracker_client
Build a reqwest::Client configured appropriately for the given URL scheme.
is_https_tracker
Detect whether a tracker URL uses HTTPS scheme.