-
-
02 Oct 2016 12:29:35 UTC
- Distribution: Net-BitTorrent-Protocol
- Module version: v1.5.3
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (545 / 46 / 56)
- Kwalitee
Bus factor: 1- 86.44% Coverage
- License: artistic_2
- Perl: v5.16.0
- Activity
24 month- Tools
- Download (35.46KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- NAME
- Importing From Net::BitTorrent::Protocol::BEP03::Bencode
- Functions
- See Also
- Author
- License and Legal
NAME
Net::BitTorrent::Protocol::BEP03::Bencode - Utility functions for BEP03: The BitTorrent Protocol Specification
Importing From Net::BitTorrent::Protocol::BEP03::Bencode
By default, nothing is exported.
You may import any of the following functions by name or with one or more of these tags:
:all
-
You get the two Bencode-related functions: bencode and bdecode. For more on Bencoding, see the BitTorrent Protocol documentation.
Functions
bencode ( ARGS )
-
Expects a single value (basic scalar, array reference, or hash reference) and returns a single string.
Bencoding is the BitTorrent protocol's basic serialization and data organization format. The specification supports integers, lists (arrays), dictionaries (hashes), and byte strings.
bdecode ( STRING )
-
Expects a bencoded string. The return value depends on the type of data contained in the string.
See Also
- The BitTorrent Protocol Specification
-
http://bittorrent.org/beps/bep_0003.html#the-connectivity-is-as-follows
- Other Bencode related modules:
Author
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
CPAN ID: SANKO
License and Legal
Copyright (C) 2008-2010 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.
Module Install Instructions
To install Net::BitTorrent::Protocol, copy and paste the appropriate command in to your terminal.
cpanm Net::BitTorrent::Protocol
perl -MCPAN -e shell install Net::BitTorrent::Protocol
For more information on module installation, please visit the detailed CPAN module installation guide.