NAME

Apache::ModBT - mod_perl interface to mod_bt


SYNOPSIS

  use Apache::ModBT;
  sub handler
  {
   my $r = shift;
   my $tracker = $r->server->ModBT_Tracker();
   print $tracker->num_peers, "\n";
   foreach my $i ($tracker->Infohashes())
   {
        ...
   }
  }


DESCRIPTION

The Apache::ModBT module adds a method onto the Apache::Server object which returns the LibBTT Tracker object for the current mod_bt process. When manipulating a mod_bt tracker from within Apache2, you should use this method instead of calling Net::BitTorrent::LibBTT->new().


SEE ALSO

Net::BitTorrent::LibBTT


AUTHOR

Tyler 'Crackerjack' MacDonald, <tyler@yi.org>


COPYRIGHT AND LICENSE

Copyright (C) 2004 by Tyler 'Crackerjack' MacDonald

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.4 or, at your option, any later version of Perl 5 you may have available.