New module under development Bittorrent::Tracker

From: Doug Bell (belld96_at_uwosh.edu)
Date: 02/14/04

  • Next message: Michel Rodriguez: "Re: XML::Parser Style => Object"
    Date: 14 Feb 2004 20:12:13 GMT
    
    

    Hi

    I'm currently trying to test this suite of modules so I can submit it to
    CPAN, but I'm having some troubles with some of the methods. (Mainly the
    Bittorrent::Tracker::Backend::find_peer and
    Bittorrent::Tracker::Backend::find_file methods).

    If anyone has the time and patience to take a look, I'd be more than
    happy to add them to list of authors.

    I've included all the modules that should be necessary, and two test
    programs, track.pl and testclient.pl. testclient.pl will connect to a
    running track.pl and get a peerlist that looks like this:

    $VAR1 = {
              'peers' => [
                                                    { peer_id => "SOME VALUE",
                                                      ip => "IP ADDRESS",
                              port => "PORT" }, ...
                                           ],
              'interval' => 3600
            };

    Currently, I think the Bittorrent::Backend::find_peer method is not
    returning any data, which is why the 'peers' key is an empty arrayref
    instead of an array of hashrefs.

    I've set a breakpoint in track.pl which should help in debugging. I've
    tried everything I could think of and couldn't find where the problem
    is.

    The files are located at http://hawkaloogie.com/bttracker.zip

    My main goal is to make Bittorrent easier for Perl programmers
    (especially since the main Bittorrent Trackers are written in PHP for
    crap's sake...). Other parts of the Bittorrent:: namespace could be used
    to write modules for Bittorrent Clients.

    Any code or help writing code will be appreciated. Contributors will be
    recognized (if you want).

    Thank you
    Doug Bell


  • Next message: Michel Rodriguez: "Re: XML::Parser Style => Object"