The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Event::SlidingWindow - Count events that occur within a fixed sliding window of time

SYNOPSIS

  use Event::SlidingWindow ;
  
  my $esw = new Event::SlidingWindow(30) ;
  $esw->record_event() ;
  my $cnt = $esw->count_events() ;

DESCRIPTION

Event::SlidingWindow allows you to create a time window of a fixed length and keeps track of how many events have occured within that window as it advances in time. It was created for use in daemons in order to detect denial of service attacks.

AUTHOR

Patrick LeBoutillier, <patl@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2004-2005 by Patrick LeBoutillier

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.