use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
use std::time::Duration;
use super::{LpdAnnouncer, LpdManager, LpdPeer, is_private_address, parse_lpd_announcement};
fn test_info_hash() -> &'static str {
"0123456789abcdef0123456789abcdef01234567"
}
fn test_info_hash_2() -> &'static str {
"fedcba9876543210fedcba9876543210fedcba98"
}
fn test_ip() -> IpAddr {
IpAddr::V4(Ipv4Addr::new(192, 168, 1, 100))
}
fn make_bep14_message(info_hash: &str, port: u16) -> Vec<u8> {
format!(
"BT-SEARCH * HTTP/1.1\r\nHost: 239.192.152.143:6771\r\nPort: {}\r\nInfohash: {}\r\n\r\n\r\n",
port, info_hash
)
.into_bytes()
}
mod manager;
mod peer;
mod wire;