top

Package torrent implements a torrent client. Goals include:

* Configurable data storage, such as file, mmap, and piece-based.
* Downloading on demand: torrent.Reader will request only the data required to
  satisfy Reads, which is ideal for streaming and torrentfs.

BitTorrent features implemented include:

* Protocol obfuscation
* DHT
* uTP
* PEX
* Magnet
* IP Blocklists
* Some IPv6
* UDP Trackers

ConfigDir

A Client has a configurable ConfigDir that defaults to $HOME/.config/torrent. Torrent metainfo files are cached at $CONFIGDIR/torrents/$infohash.torrent. Infohashes in $CONFIGDIR/banned_infohashes cannot be added to the Client. A P2P Plaintext Format blocklist is loaded from a file at the location specified by the environment variable TORRENT_BLOCKLIST_FILE if set, otherwise from $CONFIGDIR/blocklist.

Imports 16 package(s)

  1. github.com/bradfitz/iter
  2. github.com/anacrolix/missinggo/perf
  3. github.com/anacrolix/torrent/data
  4. github.com/anacrolix/torrent/bencode
  5. github.com/anacrolix/torrent/metainfo
  6. github.com/anacrolix/torrent/mse
  7. github.com/anacrolix/torrent/tracker
  8. github.com/anacrolix/torrent/data/file
  9. github.com/anacrolix/utp
  10. github.com/anacrolix/torrent/iplist
  11. github.com/anacrolix/torrent/util
  12. github.com/anacrolix/torrent/peer_protocol
  13. github.com/anacrolix/missinggo
  14. github.com/anacrolix/torrent/internal/pieceordering
  15. github.com/anacrolix/torrent/dht
  16. github.com/anacrolix/sync

Test imports 6 package(s)

  1. github.com/stretchr/testify/assert
  2. github.com/stretchr/testify/require
  3. github.com/anacrolix/torrent/data/blob
  4. github.com/anacrolix/envpprof
  5. github.com/anacrolix/torrent/internal/testutil
  6. github.com/anacrolix/torrent