WWW::Opentracker::Stats::Mode::TPBS::Bencode - WWW::Opentracker::Stats::Mode::TPBS::Bencode documentation


WWW-Opentracker-Stats documentation  | view source Contained in the WWW-Opentracker-Stats distribution.

Index


NAME

Top

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

DESCRIPTION

Top

Decodes the bencoded TPBS statistics from Opentracker.

METHODS

Top

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

Top

Bit::Vector, Convert::Bencode

AUTHOR

Top

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

COPYRIGHT AND LICENSE

Top


WWW-Opentracker-Stats documentation  | view source Contained in the WWW-Opentracker-Stats distribution.