pub fn allowed_fast_set(
info_hash: &Id20,
peer_ip: Ipv4Addr,
num_pieces: u32,
count: usize,
) -> Vec<u32>Expand description
BEP 6 Allowed-Fast set generation.
Generates a deterministic set of piece indices that a peer is allowed
to request even while choked. Uses IP masking + info_hash + SHA1.
For IPv4: masks to /24 (matching BEP 6 spec). For IPv6: masks to /48 (matching libtorrent convention).