mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
More API documentation.
This commit is contained in:
parent
eb94c6becd
commit
aeddca6523
2 changed files with 90 additions and 25 deletions
|
@ -28,23 +28,39 @@ typedef list<Analyzer*> analyzer_list;
|
|||
typedef uint32 ID;
|
||||
typedef void (Analyzer::*analyzer_timer_func)(double t);
|
||||
|
||||
/**
|
||||
* XXX
|
||||
*/
|
||||
/**
|
||||
* Class to receive processed output from an anlyzer.
|
||||
*/
|
||||
class OutputHandler {
|
||||
public:
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~OutputHandler() { }
|
||||
|
||||
/**
|
||||
* Hook for receiving packet data. Parameters are the same as for
|
||||
* Analyzer::DeliverPacket().
|
||||
*/
|
||||
virtual void DeliverPacket(int len, const u_char* data,
|
||||
bool orig, int seq,
|
||||
const IP_Hdr* ip, int caplen)
|
||||
{ }
|
||||
|
||||
/**
|
||||
* Hook for receiving stream data. Parameters are the same as for
|
||||
* Analyzer::DeliverStream().
|
||||
*/
|
||||
virtual void DeliverStream(int len, const u_char* data,
|
||||
bool orig) { }
|
||||
|
||||
/**
|
||||
* Hook for receiving notification of stream gaps. Parameters are the
|
||||
* same as for Analyzer::Undelivered().
|
||||
*/
|
||||
virtual void Undelivered(int seq, int len, bool orig) { }
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Main analyzer interface.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue