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

NAME

Net::Inspect::L5::Unknown - handles the connections nobody else deals with

SYNOPSIS

 my $guess = Net::Inspect::L5::GuessProtocol->new;
 my $fallback = Net::Inspect::L5::Unknown->new;
 $guess->attach($fallback);
 $fallback->attach(...);

DESCRIPTION

Connection handling flow, which gets used together with Net::Inspect::L5::GuessProtocol in case no other protocol handler matched.

Will return connection object if it detects, that it is the only flow still attached to the Net::Inspect::L5::GuessProtocol object.

The default implementation will just ignore the connection. To change this behavior subclass it and implement the following methods:

new_connection(\%meta)

Should return new connection object.

in($self,$dir,$data,$eof,$time)

Process the given data. Should return the number of bytes processed.