Steffen Ullrich > Net-Inspect-0.28 > Net::Inspect::L5::Unknown

Download:
Net-Inspect-0.28.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Net-Inspect-0.307

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.

syntax highlighting: