GithubHelp home page GithubHelp logo

subreme / rusty_torrent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kenpratt/rusty_torrent

0.0 0.0 0.0 100 KB

A BitTorrent client, written in Rust.

License: MIT License

Shell 0.12% Rust 99.88%

rusty_torrent's Introduction

RustyTorrent

A BitTorrent client, written in Rust.

It supports:

  • Reading .torrent files (single-file torrents only)
  • Connecting to a tracker to discover peers
  • Downloading a file from multiple peers in parallel
  • Queueing multiple requests with each peer for faster downloading (aka pipelining)
  • Uploading files to peers, and seeding existing files from disk
  • Resuming partial downloads
  • Verification of correctness of downloaded chunks

Not yet:

  • Multi-file torrents
  • Connecting to multiple trackers
  • Upload throttling/congestion control
  • NAT traversal

Requirements

  • Rust 1.0.0 or later

Usage

Download and install Rust 1.0 from http://www.rust-lang.org/install.html.

Clone the repository:

git clone [email protected]:kenpratt/rusty_torrent.git
cd rusty_torrent

To run:

cargo run path/to/myfile.torrent

To run specifying a port to listen on:

cargo run -- -p 3333 path/to/myfile.torrent

Your file will be saved in the downloads/ directory.

To build and run an optimized version (will enable significantly faster downloads):

cargo run --release -- path/to/myfile.torrent
cargo run --release -- -p 3333 path/to/myfile.torrent

To watch for changes and auto-rebuild (on OS X):

gem install kicker -s http://gemcutter.org
./watch

rusty_torrent's People

Contributors

kenpratt avatar pietromenna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.