02 Oct 2016 12:29:35 UTC
- Distribution: Net-BitTorrent-Protocol
- Module version: v1.5.3
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (531 / 45 / 56)
- KwaliteeBus factor: 1
- 86.44% Coverage
- License: artistic_2
- Perl: v5.16.0
- Activity24 month
- Download (35.46KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Net::BitTorrent::Protocol::BEP23 - Utility functions for BEP23: Tracker Returns Compact Peer Lists
By default, nothing is exported.
You may import any of the following or use one or more of these tag:
compact_ipv4 ( @list )
Compacts a list of IPv4:port strings into a single string.
A compact peer is 6 bytes; the first four bytes are the host (in network byte order), the last two bytes are the port (again, in network byte order).
uncompact_ipv4 ( $string )
Inflates a compacted string of peers and returns a list of IPv4:port strings.
Sanko Robinson <firstname.lastname@example.org> - http://sankorobinson.com/
CPAN ID: SANKO
Copyright (C) 2008-2012 by Sanko Robinson <email@example.com>
This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.
When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.
Neither this module nor the Author is affiliated with BitTorrent, Inc.
Module Install Instructions
To install Net::BitTorrent::Protocol, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::BitTorrent::Protocol
For more information on module installation, please visit the detailed CPAN module installation guide.