Full-featured BitTorrent client package and utilities
Go to file
Matt Joiner 87690e4c4c Show metadata state in status output
This is help verify the cause for an occasional stall obtaining metadata from peers.
2015-03-25 15:50:31 +11:00
cmd cmd/torrent: Replace flag with go-flags, rejig options 2015-03-25 15:41:15 +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 Fix typos 2015-03-21 09:11:45 -04:00
TODO TODO 2015-03-01 14:33:10 +11:00
client.go Move ut_pex back into the "m" map 2015-03-25 15:49:27 +11:00
client_test.go Rewrite import paths for migration from Bitbucket 2015-03-20 16:37:44 +11:00
config.go Add the ability to disable PEX 2015-03-25 15:42:14 +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 Make ParseMagnetURI easier to read 2015-03-22 13:50:16 -04:00
magnet_test.go Fix test error message 2015-03-22 13:57:57 -04:00
misc.go More public interface tidying 2015-03-20 23:52:53 +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 Show metadata state in status output 2015-03-25 15:50:31 +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 the provided cmds with go get github.com/anacrolix/torrent/cmd/....

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