BT客户端工具包 - RubyTorrent

fmms 7年前
     RubyTorrent是一个纯Ruby的BT客户端工具包,使用示例:    <pre class="brush:ruby; toolbar: true; auto-links: false;">## world's smallest bittorrent client require 'rubytorrent' bt = RubyTorrent::BitTorrent.new(ARGV.shift)   thread = Thread.new do   while true     puts bt.percent_completed     sleep 15   end end bt.on_event(self, :complete) { thread.kill } thread.join</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1327574371639" target="_blank">http://www.open-open.com/lib/view/home/1327574371639</a></p>