Permalink
Browse files

Minor doc clean up and add a quick bit of sample code

  • Loading branch information...
1 parent 1507ee1 commit ce64aca0a57c36994681c13adbb894b078a104d0 @sanko committed Jul 20, 2012
Showing with 11 additions and 1 deletion.
  1. +11 −1 lib/AnyEvent/BitTorrent.pm
@@ -1190,6 +1190,16 @@ of this version:
=head2 C<new( ... )>
+ my $c = AnyEvent::BitTorrent->(
+ path => 'some/legal.torrent',
+ basedir => './storage/',
+ port => 6881,
+ on_hash_pass => sub { ... },
+ on_hash_fail => sub { ... },
+ state => 'stopped',
+ piece_cache => $quick_restore
+ );
+
This constructor understands the following arguments:
=over
@@ -1251,7 +1261,7 @@ call L<C<start( )>|/"start( )">.
=item C<piece_cache>
-This is the index returned by L<C<piece_cache( )>|/"piece_cache( )"> in a
+This is the index list returned by L<C<piece_cache( )>|/"piece_cache( )"> in a
previous instance. Using this should make a complete resume system a trivial
task.

0 comments on commit ce64aca

Please sign in to comment.