/src/zeek/tools/binpac/lib/binpac_analyzer.h
Line | Count | Source |
1 | | // See the file "COPYING" in the main distribution directory for copyright. |
2 | | |
3 | | #ifndef binpac_an_h |
4 | | #define binpac_an_h |
5 | | |
6 | | namespace binpac { |
7 | | |
8 | | // TODO: Add the Done() function |
9 | | |
10 | | // The interface for a connection analyzer |
11 | | class ConnectionAnalyzer { |
12 | | public: |
13 | 2.84M | virtual ~ConnectionAnalyzer() = default; |
14 | | virtual void NewData(bool is_orig, const unsigned char* begin_of_data, const unsigned char* end_of_data) = 0; |
15 | | }; |
16 | | |
17 | | // The interface for a flow analyzer |
18 | | class FlowAnalyzer { |
19 | | public: |
20 | 5.83M | virtual ~FlowAnalyzer() = default; |
21 | | virtual void NewData(const unsigned char* begin_of_data, const unsigned char* end_of_data) = 0; |
22 | | }; |
23 | | |
24 | | } // namespace binpac |
25 | | |
26 | | #endif // binpac_an_h |