BT客戶端工具包 - RubyTorrent

fmms 12年前發布 | 14K 次閱讀 Ruby 網絡工具包

RubyTorrent是一個純Ruby的BT客戶端工具包,使用示例:

## 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>

項目主頁:http://www.baiduhome.net/lib/view/home/1327574371639

 本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!