Net::Inspect::Connection - base class for connections
package Net::Inspect::L7::HTTP; use base 'Net::Inspect::Connection'; sub in { my ($self,$dir,$data,$eof,$time) = @_; # expire after 2 hours inactivity $self->{expire} = $time + 7200; ... }
Net::Inspect::Connection provides a field expire, which should be set to the time, when the connection can expire, even if not explicitly closed.
It provides a function which will be regularly called from Net::Inspect::L4::TCP and Net::Inspect::L4::UDP on all known connections and if it returns true the connection will be deleted.
To install Net::Inspect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Inspect
CPAN shell
perl -MCPAN -e shell install Net::Inspect
For more information on module installation, please visit the detailed CPAN module installation guide.