Skip to main content

Module lpd_manager

Module lpd_manager 

Source
Expand description

Local Peer Discovery (LPD) Manager - Phase 15 H8

Implements BitTorrent Local Peer Discovery using UDP multicast on the standard LPD multicast group 239.192.152.143:6771.

§Architecture

lpd_manager.rs (this file)
  ├── LpdManager - High-level coordinator for LPD operations
  ├── LpdAnnouncer - Low-level UDP multicast sender/receiver
  ├── LpdPeer - Discovered peer information
  └── parse_lpd_announcement() - Parse text-format LPD messages

LPD Protocol:
  Multicast Group: 239.192.152.143:6771
  Message Format:
    Hash: <info_hash_hex>\n
    Port: <listen_port>\n
    Token: <random_8hex>\n

  Announce Interval: Every 5 minutes while active

Re-exports§

pub use constants::LPD_DEFAULT_ANNOUNCE_INTERVAL_SECS as DEFAULT_ANNOUNCE_INTERVAL_SECS;
pub use constants::LPD_MULTICAST_ADDRESS as LPD_MULTICAST_ADDR;
pub use constants::LPD_PORT;

Structs§

LpdAnnouncer
Handles low-level UDP multicast I/O for LPD announcements.
LpdManager
Manages LPD operations for all active torrents.
LpdPeer
Information about a peer discovered via LPD

Constants§

MAX_PEERS_PER_HASH
Maximum number of peers to track per info hash

Functions§

parse_lpd_announcement
Parse a raw LPD announcement message into structured data