NAME

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

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 wihtin 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 by Patrick LeBoutillier

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