000-basic.pl - Bare minimum example BitTorrent client
This is the least amount of code needed to create a full Net::BitTorrent-based client.
Net::BitTorrent
000-basic.pl
This section only makes sense when you view the source.
Creates a new Net::BitTorrent object. Lets OS pick a random port and opens sockets (TCP and UDP) on all available hosts.
Attempts to create a new Net::BitTorrent::Torrent object. Defaults to current working directory for storage.
Net::BitTorrent::Torrent
If there's a problem loading the .torrent, an error will (probably) be Carped by Net::BitTorrent::Torrent.
Carp
Works forever. Net::BitTorrent will continue to seed the torrent after download is complete.
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
CPAN ID: SANKO
Copyright (C) 2008-2009 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 http://www.perlfoundation.org/artistic_license_2_0. For clarification, see http://www.perlfoundation.org/artistic_2_0_notes.
When separated from the distribution, all POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See http://creativecommons.org/licenses/by-sa/3.0/us/legalcode. For clarification, see http://creativecommons.org/licenses/by-sa/3.0/us/.
Neither this module nor the Author is affiliated with BitTorrent, Inc.
To install Net::BitTorrent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::BitTorrent
CPAN shell
perl -MCPAN -e shell install Net::BitTorrent
For more information on module installation, please visit the detailed CPAN module installation guide.