AnyEvent-BitTorrent
view release on metacpan or search on metacpan
This is the base directory all data will be stored in and/or read from.
Multifile torrents will create another directory below this to store all
files.
By default, this is the current working directory when
[`new( ... )`](#new) is called.
- `port`
This is the preferred port local host binds and expects incoming peers to
connect to.
By default, this is a zero; the system will pick a port number randomly.
- `on_hash_fail`
This is a subroutine called whenever a piece fails to pass
[hashcheck](#hashcheck). The callback is handed the piece's index.
- `on_hash_pass`
lib/AnyEvent/BitTorrent.pm view on Meta::CPAN
This is the base directory all data will be stored in and/or read from.
Multifile torrents will create another directory below this to store all
files.
By default, this is the current working directory when
L<C<new( ... )>|/"new( ... )"> is called.
=item C<port>
This is the preferred port local host binds and expects incoming peers to
connect to.
By default, this is a zero; the system will pick a port number randomly.
=item C<on_hash_fail>
This is a subroutine called whenever a piece fails to pass
L<hashcheck|/"hashcheck( [...] )">. The callback is handed the piece's index.
=item C<on_hash_pass>
( run in 0.881 second using v1.01-cache-2.11-cpan-2398b32b56e )