3 torrent \- bittorrent client
26 BitTorrent is a protocol for efficient file distribution
27 over the internet. Files are split into small pieces
28 that are then downloaded by clients in random order.
29 As soon as a client completes a piece, it makes the piece
30 available for others to download.
32 To find find other clients (peers), a tracker-server is
35 Before files can be transmitted, a torrent-file needs
36 to be created describing the pieces of the files and
37 other meta-data like network addresses of the trackers.
40 downloads the files that are described in the torrent-file
43 argument to the current working directory. If no
45 is given, the torrent is read from standard-input.
47 Normally, the program exits immediately after all pieces
51 option causes it to keep running and serve the remaining
52 clients (also known as seeding).
54 Trackers use a subset of the HTTP protocol, so an
57 mountpoint can be given with the
66 to list the files in the torrent-file before downloading.
70 option produces verbose debug output to standard-error.
72 To monitor the download progress, the
74 option can be given to cause the completed and total number of
75 pieces written as a line of text to standard-output in one
78 Download the latest iso file of the distribution
81 hget http://r-36.net/9front/9front.iso.bz2.torrent | \\
83 aux/statusbar 'download...'
86 .B /sys/src/cmd/ip/torrent.c