btpeer 0.8.0

Simple CLI tool and library to get peers from TCP/HTTP and UDP BitTorrent trackers
Documentation
1
2
3
4
5
6
7
use cyphernet::addr::{HostName, PartialAddr};

pub type Peer = PartialAddr<HostName, 0>;

pub fn new_buffer(capacity: Option<usize>) -> Vec<Peer> {
    Vec::with_capacity(capacity.unwrap_or_default())
}