73d8eef468 | ||
---|---|---|
cmd | ||
data | ||
dht | ||
fs | ||
internal | ||
iplist | ||
logonce | ||
mmap_span | ||
mse | ||
peer_protocol | ||
tracker | ||
util | ||
NOTES | ||
README.md | ||
TODO | ||
client.go | ||
client_test.go | ||
config.go | ||
connection.go | ||
connection_test.go | ||
magnet.go | ||
magnet_test.go | ||
misc.go | ||
ordered.go | ||
ordered_test.go | ||
stateless.go | ||
torrent.go | ||
torrent_test.go | ||
worst_conns.go |
README.md
torrent
This repository implements BitTorrent-related packages and command-line utilities in Go.
There is support for protocol encryption, DHT, PEX, uTP, and various extensions. There are several storage backends provided, blob, file, mmap. You can use the provided binaries in ./cmd
, or use torrent
as a library for your own applications.
Installation
Install the library package with go get github.com/anacrolix/torrent
, or one of the provided cmds with go get github.com/anacrolix/...
.
Library example
There is a small example in the package documentation.
Torrent utility
There's a provided utility that downloads torrents from the command-line.
$ go get github.com/anacrolix/torrent/cmd/torrent
$ torrent 'magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU'
2015/03/20 22:51:41 main.go:96: downloaded ALL the torrents
$ md5sum ubuntu-14.04.1-desktop-amd64.iso
119cb63b48c9a18f31f417f09655efbd ubuntu-14.04.1-desktop-amd64.iso
$ echo such amaze
wow