Go to file
Matt Joiner 73d8eef468 Improve the README 2015-03-20 23:18:09 +11:00
cmd Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
data Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
dht bitbucket.org/anacrolix/sync moved to github 2015-03-20 16:46:39 +11:00
fs Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
internal Add piece blob torrent.Data storage, and move testutil to internal/, add basic transfer test for Client and blob 2015-02-27 01:46:02 +11:00
iplist Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
logonce logonce is a package that prints each distinct message only once 2014-11-16 13:04:44 -06:00
mmap_span mmap_span: Avoid allocating the span slice on every use 2014-12-05 00:54:55 -06:00
mse Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
peer_protocol Add support for Fast Extension 2015-03-12 20:06:23 +11:00
tracker Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
util Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
NOTES Add UTP support, disable TCP for now. DHT moves to another port 2014-11-16 13:29:31 -06:00
README.md Improve the README 2015-03-20 23:18:09 +11:00
TODO TODO 2015-03-01 14:33:10 +11:00
client.go bitbucket.org/anacrolix/sync moved to github 2015-03-20 16:46:39 +11:00
client_test.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
config.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
connection.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
connection_test.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
magnet.go Add Magnet.String() 2015-02-25 14:50:01 +11:00
magnet_test.go Add Magnet.String() 2015-02-25 14:50:01 +11:00
misc.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
ordered.go More cleaning of public interface 2015-03-08 17:28:14 +11:00
ordered_test.go More cleaning of public interface 2015-03-08 17:28:14 +11:00
stateless.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
torrent.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
torrent_test.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
worst_conns.go Piece priorities, torrent read interface and many fixes 2014-12-03 01:07:50 -06:00

README.md

torrent

Codeship GoDoc

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