mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Improve Alpine (musl) support by not relying on the (technically) non-standard u_char typedef.
27 lines
630 B
C++
27 lines
630 B
C++
#ifndef binpac_an_h
|
|
#define binpac_an_h
|
|
|
|
namespace binpac {
|
|
|
|
// TODO: Add the Done() function
|
|
|
|
// The interface for a connection analyzer
|
|
class ConnectionAnalyzer {
|
|
public:
|
|
virtual ~ConnectionAnalyzer() {}
|
|
virtual void NewData(bool is_orig,
|
|
const unsigned char* begin_of_data,
|
|
const unsigned char* end_of_data) = 0;
|
|
};
|
|
|
|
// The interface for a flow analyzer
|
|
class FlowAnalyzer {
|
|
public:
|
|
virtual ~FlowAnalyzer() {}
|
|
virtual void NewData(const unsigned char* begin_of_data,
|
|
const unsigned char* end_of_data) = 0;
|
|
};
|
|
|
|
} // namespace binpac
|
|
|
|
#endif // binpac_an_h
|