Net::BitTorrent::PeerPacket handles parsing and building binary data shared between BitTorrent peers. The module optinally exports a single subroutine for building packets and another for parsing packets, as well as, a constant for each packet type defined by BitTorrent. WWW: https://metacpan.org/release/Net-BitTorrent-PeerPacket