问题
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!
回答1:
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
回答2:
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.
来源:https://stackoverflow.com/questions/6111517/ruby-bittorrent-library