module

ActiveTorrent::Tracker

Class methods

announce(torrent_id : Int64, subject : String, peer_id : String, ip : String, port : Int32, left : Int64, event : String | Nil = nil, interval : Int32 | Nil = nil) : AnnounceResult

Обработка анонса (§5.4). Параметры как в BEP 3: peer_id, port, uploaded/downloaded/left (учёт ведём в статистике субъекта — фаза 2), event started|stopped|completed|nil. ip — адрес пира (контроллер берёт из запроса).

Source
healthy?(torrent_id : Int64, k : Int32 = ActiveTorrent.healthy_seeders) : Bool

Порог K: полных сидов ≥ K → рой здоров, webseed серверу не нужен.

Source
sweep_stale(torrent_id : Int64, interval : Int32, now : Time) : Nil
Source

Nested types