A Rust implementation of the BitTorrent V2 protocol. For now only V1 is implemented but we're working on V2.
- Rust
- Cargo
To run the program there needs to be a .cfg
file in the configs
directory of the project. We provide two with default values as an example.
Then run the program with cargo
followed by the directory containing the .torrent
files, and the directory and name of the .cfg
file as shown below:
$ cargo run --bin dtorrent -- --file ./torrents/file_name --config ./configs/config_file
On startup the client gets all the .torrent
files on the specified directory and immediately starts the download & upload.
Run the test suite:
make test