Hi, trying to get rubytorrent to act as a seeder.
I''m instantiation the RubyTorrent::Bittorrent with a pre-created
MetaInfo object...
bt = RubyTorrent::BitTorrent.new(dtorrent.metainfo)
bt.on_event(self, :tracker_connected) { |s, url| puts "[tracker]
connected to tracker #{url}" }
I will attack the test file (just some random strings in a file)
and the torrent that was generated for it.
.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Porp.avi.torrent
Type: application/octet-stream
Size: 245 bytes
Desc: not available
Url :
http://rubyforge.org/pipermail/rubytorrent-devel/attachments/20050207/b0b50cb8/Porp.avi.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Porp.avi
Type: video/x-msvideo
Size: 76 bytes
Desc: not available
Url :
http://rubyforge.org/pipermail/rubytorrent-devel/attachments/20050207/b0b50cb8/Porp.avi
-------------- next part --------------
Below is the error
---
(druby://localhost:54744)
./3rdParty/rubytorrent/rubytorrent/typedstruct.rb:76:in
`method_missing'': no such value info (ArgumentError)
from (druby://localhost:54744)
./3rdParty/rubytorrent/rubytorrent/metainfo.rb:128:in `send''
from (druby://localhost:54744)
./3rdParty/rubytorrent/rubytorrent/metainfo.rb:128:in `method_missing''
from (druby://localhost:54744)
./3rdParty/rubytorrent/rubytorrent/package.rb:488:in `initialize''
from (druby://localhost:54744)
./3rdParty/rubytorrent/rubytorrent.rb:54:in `new''
from (druby://localhost:54744)
./3rdParty/rubytorrent/rubytorrent.rb:54:in `initialize''
Below is a Dump of the object that i passed
--
#<RubyTorrent::MetaInfo:0x10a317c
@dict {"info"=>
{"name"=>"Porp.avi",
"pieces"=>"r7p\311\030\362\335\030z\212\302\0260\031\035b\311b-`",
"piece length"=>65536,
"length"=>76},
"creation date"=>1107759320,
"created by"=>
"RubyTorrent make-metainfo (http://rubytorrent.rubyforge.org)",
"comment"=>"Blah!",
"announce"=>"http://localhost:6969"},
@s #<RubyTorrent::TypedStruct:0x10a3140
@array {:announce_list=>true,
:creation_date=>false,
:info=>false,
:comment=>false,
:announce=>false,
:created_by=>false,
:encoding=>false},
@coerce {:announce_list=>
#<Proc:0x00074ba0@./3rdParty/rubytorrent/rubytorrent/metainfo.rb:144>,
:creation_date=>
#<Proc:0x00074ee8@./3rdParty/rubytorrent/rubytorrent/metainfo.rb:142>,
:info=>
#<Proc:0x00075000@./3rdParty/rubytorrent/rubytorrent/metainfo.rb:141>,
:announce=>
#<Proc:0x00074dd0@./3rdParty/rubytorrent/rubytorrent/metainfo.rb:143>},
@dirty=true,
@field {:announce_list=>Array,
:creation_date=>Time,
:info=>RubyTorrent::MetaInfoInfo,
:comment=>String,
:announce=>URI::HTTP,
:created_by=>String,
:encoding=>String},
@label {:announce_list=>"announce-list",
:creation_date=>"creation date",
:info=>"info",
:comment=>"comment",
:announce=>"announce",
:created_by=>"created by",
:encoding=>"encoding"},
@required {:announce_list=>false,
:creation_date=>false,
:info=>false,
:comment=>false,
:announce=>false,
:created_by=>false,
:encoding=>false},
@values {:creation_date=>Sun Feb 06 23:55:20 MST 2005,
:info=>
#<RubyTorrent::MetaInfoInfo:0x10a2100
@dict {"name"=>"Porp.avi",
"pieces"=>"r7p\311\030\362\335\030z\212\302\0260\031\035b\311b-`",
"piece length"=>65536,
"length"=>76},
@s #<RubyTorrent::TypedStruct:0x10a20d8
@array {:piece_length=>false,
:length=>false,
:pieces=>false,
:md5sum=>false,
:sha1=>false,
:files=>true,
:name=>false},
@coerce {:files=>
#<Proc:0x000776d4@./3rdParty/rubytorrent/rubytorrent/metainfo.rb:65>},
@dirty=true,
@field {:piece_length=>Integer,
:length=>Integer,
:md5sum=>String,
:pieces=>String,
:files=>RubyTorrent::MetaInfoInfoFile,
:sha1=>String,
:name=>String},
@label {:piece_length=>"piece length",
:length=>"length",
:pieces=>"pieces",
:md5sum=>"md5sum",
:sha1=>"sha1",
:files=>"files",
:name=>"name"},
@required {:piece_length=>true,
:length=>false,
:md5sum=>false,
:pieces=>true,
:sha1=>false,
:files=>false,
:name=>true},
@values {:piece_length=>65536,
:length=>76,
:pieces=>"r7p\311\030\362\335\030z\212\302\0260\031\035b\311b-`",
:name=>"Porp.avi"}>>,
:comment=>"Blah!",
:announce=>#<URI::HTTP:0x850b1c URL:http://localhost:6969>,
:created_by=>
"RubyTorrent make-metainfo
(http://rubytorrent.rubyforge.org)"}>>