Ruby BitTorrent 库 [英] Ruby BitTorrent Library
问题描述
我正在考虑用 ruby 编写定制的 Torrent 客户端.我找到了以下库(正如 Matt 在下面指出的那样,它们已经很老了).但是,我想听听我可能错过的任何图书馆,我很想听听社区对以下图书馆的看法.就像利弊一样......
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...
请注意,我希望修改库的一些内部工作方式以满足我的需要.因此,纯 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.
注意:我在 stackoverflow 上搜索了这个问题(或任何类似的问题).唯一提出的问题是很久以前提出的,没有任何像样的答案.因此这个新问题.
感谢您的时间!
推荐答案
在没有找到任何好的解决方案将我的 ruby 代码连接到 BitTorrent 协议后,我为传输 RPC API 实现了一个 Ruby 包装器:
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:
这是一个非常简单的版本,可以满足我的需求.
It is a very simple version that works for my needs.
当然,它对运行它的 Transmission 客户端有很大的依赖性,但我认为它是您希望拥有的依赖项是一个非常稳定且非常更新的 bittorrent 客户端.
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.
我建议设置一个 无头传输守护进程
这篇关于Ruby BitTorrent 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!