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.
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.
发布评论
评论(2)
在找不到任何好的解决方案将我的 ruby 代码连接到 BitTorrent 协议后,我为 Transmission RPC API 实现了一个 Ruby 包装器:
这是一个非常简单的版本,可以满足我的需求。
当然,它对为其运行的 Transmission 客户端有很大的依赖性,但我认为这是您的依赖性想要拥有它是因为它是一个非常稳定且更新的 BitTorrent 客户端。
我建议设置 无头传输守护进程
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.
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
您有几种选择,可以使用 FFI 和任何 c/c++/java torrent 库自行实现,或者使用众所周知的 torrent 守护进程(即: Transmission、utorrent 等)并通过其 rpc 接口与其对话。
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.