AnyEvent-BitTorrent
view release on metacpan or search on metacpan
eg/simple_client.pl view on Meta::CPAN
#!perl
use lib '../lib';
use AnyEvent::BitTorrent;
use Net::BitTorrent::Protocol qw[:all];
$|++;
#
my $client = AnyEvent::BitTorrent->new(
path => 'a/legal.torrent',
on_hash_pass => sub { warn 'PASS: ' . pop },
on_hash_fail => sub { warn 'FAIL: ' . pop }
);
$client->hashcheck();
AE::cv->recv;
( run in 0.668 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )