Knut-Olav Hoven

NAME

WWW::Opentracker::Stats::Mode::TPBS::Bencode

DESCRIPTION

Decodes the bencoded TPBS statistics from Opentracker.

METHODS

decode_stats

 Args: $class, $payload

Returns a HASHREF of the decoded stats structure.

The structure looks something like this:

 $VAR1 => {
    files => {
       INFOHASH => {
           incomplete  => 2,
           downloaded  => 52,
           complete    => 71,
       },
       INFOHASH => ...
    }
 }

SEE ALSO

Bit::Vector, Convert::Bencode

AUTHOR

Knut-Olav Hoven, <knutolav@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2009 by Knut-Olav Hoven

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.