The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

client.pl - Very basic BitTorrent client

Synopsis

client.pl [options] [file ...]

 Options:
   -torrent           .torrent file to load
   -port              port number opened to incoming connections
   -store             base directory to store downloaded files
   --no-hashcheck     skip integrity check at start
   --no-dht           disable DHT
   -verbose           display all sorts of useless info
   -help              brief help message
   -man               full documentation

Options

-torrent

Open this .torrent file.

You may pass several -torrent parameters and load more than one .torrent session.

-port

Port number opened to the world for incoming connections. This defaults to 0 and lets Net::BitTorrent bind to a random, unused port.

-store

Relative or absolute directory to store downloaded files. All files will be downloaded using this as the base directory. Single file torrents will go directly into this directory, multifile torrents will create a directory within this and download there. By default, this is the current working directory.

--no-hashcheck

If found, the files will not be checked for integrity and we assume that we have none of the data of this torrent.

--no-dht

Disables DHT.

-verbose

Print loads of extra information as we download; Stuff like file open messages, packet transmission status, etc. Useful for bug reporting.

-help

Print a brief help message and exit.

-man

Print the manual page and exit.

Description

This is a very basic demonstration of a full Net::BitTorrent-based client.