btpeer 0.9.0

Simple CLI tool and library to get peers from TCP/HTTP and UDP BitTorrent trackers
Documentation
1
2
3
4
5
6
7
8
9
pub mod announce;
pub mod scrape;

pub use announce::Announce;
pub use scrape::Scrape;

fn url_encode_bytes(bytes: &[u8]) -> String {
    bytes.iter().map(|b| format!("%{:02x}", b)).collect()
}