Rubytorrent

Hi all,

Some time last month there was talk of a Ruby BitTorrent client. I don't
know whether anything materialized from that, but I've been playing
around with the idea of a pure-Ruby client, and it's finally reached a
state where it's usable.

If anyone is interested in playing around with it or using the code,
please check out
http://www.masanjin.net/~wmorgan/rubytorrent/rubytorrent-0.0.tar.gz.

It needs a lot of testing and tweaking, but it can successfully download
files (or at least the couple I've tried).

···

--
William <wmorgan-ruby-talk@masanjin.net>

William Morgan wrote:

Hi all,

Some time last month there was talk of a Ruby BitTorrent client. I don't
know whether anything materialized from that, but I've been playing
around with the idea of a pure-Ruby client, and it's finally reached a
state where it's usable.

If anyone is interested in playing around with it or using the code,
please check out
http://www.masanjin.net/~wmorgan/rubytorrent/rubytorrent-0.0.tar.gz\.

It needs a lot of testing and tweaking, but it can successfully download
files (or at least the couple I've tried).

Hi William,

I`d like to test your torrent client but had some problems with each of the three scripts. Maybe my lovely Windows OS caused the following problems? I`ve tried other .torrent files but with same result. Azureus (V2.2.0.2) accepted these files without problems.

Andreas

···

----
running
* Windows 2003 SE [Version 5.2.3790]
* ruby 1.8.2 (2004-12-25) [i386-mswin32]
----

D:\rubytorrent-0.0>ruby -d rtpeer.rb KNOPPIX_V3.7-2004-12-08-EN[1].torrent
Exception `RubyTorrent::BEncodingError' at ../rubytorrent/bencoding.rb:156 - no dictionary terminator
error parsing metainfo file KNOPPIX_V3.7-2004-12-08-EN[1].torrent---maybe not a .torrent?

Dear Andreas,

Excerpts from Andreas Habel's mail of 2 Jan 2005 (EST):

D:\rubytorrent-0.0>ruby -d rtpeer.rb KNOPPIX_V3.7-2004-12-08-EN[1].torrent
Exception `RubyTorrent::BEncodingError' at
../rubytorrent/bencoding.rb:156 - no dictionary terminator
error parsing metainfo file
KNOPPIX_V3.7-2004-12-08-EN[1].torrent---maybe not a .torrent?

Thanks for the feedback. Can you email me (privately) the .torrent file?
I'll take a look and see what I've done wrong. :slight_smile:

···

--
William <wmorgan-ruby-talk@masanjin.net>

Excerpts from William Morgan's mail of 2 Jan 2005 (EST):

Thanks for the feedback. Can you email me (privately) the .torrent file?
I'll take a look and see what I've done wrong. :slight_smile:

Incidentally, I just tried

http://torrent.unix-ag.uni-kl.de/torrents/KNOPPIX_V3.7-2004-12-08-EN.torrent

and it worked. Can you try that one too?

Thanks,

···

--
William <wmorgan-ruby-talk@masanjin.net>

William Morgan wrote:

Excerpts from William Morgan's mail of 2 Jan 2005 (EST):

Thanks for the feedback. Can you email me (privately) the .torrent file?
I'll take a look and see what I've done wrong. :slight_smile:

Incidentally, I just tried

http://torrent.unix-ag.uni-kl.de/torrents/KNOPPIX_V3.7-2004-12-08-EN.torrent

and it worked. Can you try that one too?

Thanks,

The mail with my .torrent file is on it`s way to you. Here is another output of dump-peers.rb with your mentioned file:

D:\rubytorrent-0.0>dump-peers.rb KNOPPIX_V3.7-2004-12-08-EN.torrent
error parsing metainfo file KNOPPIX_V3.7-2004-12-08-EN.torrent
---maybe not a .torrent?
D:/rubytorrent-0.0/dump-peers.rb:11:in `exit': cannot convert IO into Integer (TypeError)
    from D:/rubytorrent-0.0/dump-peers.rb:11