From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Net::Inspect::Connection - base class for connections

SYNOPSIS

sub in {
my ($self,$dir,$data,$eof,$time) = @_;
# expire after 2 hours inactivity
$self->{expire} = $time + 7200;
...
}

DESCRIPTION

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.