3 torrent \- bittorrent client
29 BitTorrent is a protocol for efficient file distribution
30 over the internet. Files are split into small pieces
31 that are then downloaded by clients in random order.
32 As soon as a client completes a piece, it makes the piece
33 available for others to download.
35 To find find other clients (peers), a tracker-server is
38 Before files can be transmitted, a torrent-file needs
39 to be created describing the pieces of the files and
40 other meta-data like network addresses of the trackers.
46 reads the file given at the final
48 argument (or standard-input when omited) and writes
49 a torrent file to standard-output and exits.
52 should be given with the
54 option in that case. A list of trackers can be obtained
55 on the web, see the examples below.
57 If the files in the torrent are also available from a url, a
59 can be passed with the
63 ends with a slash, the filename, from the torrent, concatinated
64 with the url forms the target url.
70 downloads the files that are described in the torrent-file
73 argument to the current working directory. If no
75 is given, the torrent is read from standard-input.
77 Normally, the program exits immediately after all pieces
81 option causes it to keep running and serve the remaining
82 clients (also known as seeding).
84 Trackers use a subset of the HTTP protocol, so an
87 mountpoint can be given with the
96 to list the files in the torrent-file before downloading.
100 option produces verbose debug output to standard-error.
102 To monitor the download progress, the
104 option can be given to cause the completed and total number of
105 pieces written as a line of text to standard-output in one
108 Create new torrent file
110 ip/torrent -t http://exodus.desync.com/announce \\
111 -c 9atom.iso >9atom.torrent
114 Download the latest iso file of the distribution
117 hget http://r-36.net/9front/9front.iso.bz2.torrent | \\
119 aux/statusbar 'download...'
122 Get list of public alive trackers to choose from
124 hget http://www.trackon.org/api/live
128 .B /sys/src/cmd/ip/torrent.c