A BitTorrent client written in Ruby language. Developed as a part of Torrent server on Ruby on Rails
Currently implemented functionality:
Downloading single and multiple files with torrent
TODO list:
implement partial download;
add magnet links support;
implement seeding;
Using as a standalone app:
To download a file using TorrentClient, run the following from the root directory:
ruby torrent_app.rb <path/to/torrent_file>
Using as a part of rails app:
put the project into lib directory of rails application
add this to your application.rb file
config.autoload_paths += %W(#{config.root}/lib)
require './lib/TorrentClient/torrent_lib'
More about Bittorrent Protocol Specification:
https://wiki.theory.org/BitTorrentSpecification
https://en.wikipedia.org/wiki/Glossary_of_BitTorrent_terms