Sanko Robinson > Net-BitTorrent-Protocol > Net::BitTorrent::Protocol::BEP07

Download:
Net-BitTorrent-Protocol-1.0.2.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: v1.0.0   Source  

NAME ^

Net::BitTorrent::Protocol::BEP07 - Utility functions for BEP07: IPv6 Tracker Extension

Importing From Net::BitTorrent::Protocol::BEP07 ^

By default, nothing is exported.

You may import any of the following or use one or more of these tag:

:all

Imports the tracker response-related functions compact and uncompact.

Functions ^

compact_ipv6 ( @list )

Compacts a list of [IPv6, port] values into a single string.

A compact peer is 18 bytes; the first 16 bytes are the host and the last two bytes are the port.

uncompact_ipv6 ( $string )

Inflates a compacted string of peers and returns a list of [IPv6, port] values.

See Also ^

BEP 07: IPv6 Tracker Extension - http://bittorrent.org/beps/bep_0007.html

Author ^

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

CPAN ID: SANKO

License and Legal ^

Copyright (C) 2010-2012 by Sanko Robinson <sanko@cpan.org>

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.

syntax highlighting: