Net::BitTorrent - Wheeeeeeee!!!


  use Net::BitTorrent;
  use AnyEvent;

  my $c = Net::BitTorrent->new();

  # XXX - callback system is incomplete

  my $t = $c->add_torrent( path => 'a/legal.torrent' )
      || die 'Cannot load .torrent';

  $c->run; # Simple wrapper around AnyEvent->condvar->recv


Net::BitTorrent is a class based implementation of the BitTorrent Protocol for distributed data exchange.

Note that this distribution is being rewritten from scratch and will eventually use Moose and AnyEvent. If you see this notice, I am probably trying out some new thing I'd like to have some CPAN tester data on.

You are invited to test but please DO NOT ATTEMPT TO USE THIS IN PRODUCTION as everything from the API to basic internal functionality is subject to change. For more, see this new branch in the public repository.

All bugs and feature requests should be made on the issue tracker found at or via IRC at irc://


Sanko Robinson <> -


License and Legal

Copyright (C) 2008-2010 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 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.