Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby BitTorrent Library [closed]

I am thinking of writing customized torrent client in ruby. I found the following libraries (which are pretty old as Matt pointed out bellow). However i would like to hear about any library that i might have missed and i would love to hear what the community have to say about the following libraries. As in pros and cons...

  • RubyTorrent
  • libtorrent-ruby

Please note that i am hoping to modify some inner workings of the library to suit my needs. Hence a pure ruby library would be ideal.

Note: I searched stackoverflow for this question (or anything similar). The only questions that came up were asked long ago and didn't have any decent answers. Hence this new question.

  • Ruby Torrent Library

Thanks for your time!

like image 806
thekindofme Avatar asked May 24 '11 13:05

thekindofme


2 Answers

After not finding any good solution to connect my ruby code to a BitTorrent protocol I have implemented a Ruby wrapper for the Transmission RPC API:

  • http://rubygems.org/gems/transmission_api

It is a very simple version that works for my needs.

Of course it has a very big dependency of a Transmission client running for it, but I think it is a dependency you want to have due it is a very stable and very updated bittorrent client.

I recommend to set up a headless transmission daemon

like image 167
fguillen Avatar answered Sep 20 '22 14:09

fguillen


You have a few alternatives, rolling your own with FFI and any c/c++/java torrent library, or use a well known torrent daemon (ie: transmission, utorrent, etc) and talk to it via its rpc interface.

like image 33
Pablo Castellazzi Avatar answered Sep 19 '22 14:09

Pablo Castellazzi