Skip to content

End user

Adrian Macal edited this page Mar 29, 2017 · 4 revisions

Leak is a torrent library, but it also delivers some end-user tools to demonstrate all its features.

leak

The application is limited working client to communicate with the swarm.

download

Downloads entire resource by specifing its hash, trackers and destination folder. It connects to the swarm, receives data and shuts down when the download is completed.

leak.exe download --hash 73b38c5f82a28d47efef94c04d0a839b180f9ca0
                  --trackers http://bttracker.debian.org:6969/announce
                  --destination d:\leak

seed

Downloads and seeds entire resource by specifing its hash, trackers and destination folder. It connects to the swarm, receives data, shares it and never shuts down.

leak.exe seed --hash 73b38c5f82a28d47efef94c04d0a839b180f9ca0
              --trackers http://bttracker.debian.org:6969/announce
              --destination d:\leak

leak-direct

The application is very limited working client to communicate with exactly one peer.

download

Downloads entire resource specifing its hash, remote peer address and destination folder. It connects to the peer, receives data and shuts down when the download is completed.

leak-direct.exe download --hash 73b38c5f82a28d47efef94c04d0a839b180f9ca0
                         --host 195.154.118.14 --port 51413
                         --destination d:\leak

additional options

 --connector (on|off) (default: on)

     Actively search for peers and connect to them.

 --listener (on|off) (default: off)

     Listen to incomming connections and accept them.

 --port #value (default: random)

     Listen on specified port.

 --accept #countries (default: all)

     Accept only peers from the given countries; example: RU UA

 --metadata (on|off) (default: on)

     Use ut_metadata extension.

 --exchange (on|off) (default: on)

     Use ut_pex extension.

 --strategy (sequential|rarest-first) (default: rarest-first)

     Schedule pieces using specified algorithm.

 --logging (compact|verbose) (default: compact)

     Control the number of logs printed out.