Net::Inspect::L5::GuessProtocol - tries to find and redirect to appropriate protocol handler
... my $guess = Net::Inspect::L5::GuessProtocol->new; $guess->attach($http); $guess->attach($null); ... my $tcp = Net::Inspect::L4::TCP->new($guess);
Uses the attached flows to find out, which OSI Layer 7 protocol the data might be in and then gives control to the appropriate protocol handler.
Implements the hooks required for
Net::Inspect::L4::TCP. Usually attached to
Net::Inspect::L4::TCP and attached flows are usually
attaches specified flow, which should provide
detaches specified flow
returns list of attached flows
forwarded to protocol implementing object if it is already found. Otherwise calls
forwarded to protocol implementing object
The flow should return an appropriate Net::Inspect::Connection object if it does implement the protocol. If it does not implement the protocol it should detach itself from the
$guess->attach(undef,$self)and return (). If it needs more data to decide it should simply return ().
The hook must do it's own buffering of the given data and process them before returning itself as the protocol handler.
fatal gets forwarded to the protocol implementing object once it is found.