View on
Sanko Robinson > Net-BitTorrent-0.052 >


Annotate this POD


View/Report Bugs

NAME ^ - Bare minimum example BitTorrent client

Description ^

This is the least amount of code needed to create a full Net::BitTorrent-based client.

Synopsis ^

Lowdown ^

This section only makes sense when you view the source.

Line 5

Creates a new Net::BitTorrent object. Lets OS pick a random port and opens sockets (TCP and UDP) on all available hosts.

Line 6

Attempts to create a new Net::BitTorrent::Torrent object. Defaults to current working directory for storage.

If there's a problem loading the .torrent, an error will (probably) be Carped by Net::BitTorrent::Torrent.

Line 7

Works forever. Net::BitTorrent will continue to seed the torrent after download is complete.

Author ^

Sanko Robinson <> -


License and Legal ^

Copyright (C) 2008-2009 by Sanko Robinson <>

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 For clarification, see

When separated from the distribution, all POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See For clarification, see

Neither this module nor the Author is affiliated with BitTorrent, Inc.

syntax highlighting: