blob: 221d3bde7679cd44aa4d746f40562987cd1658bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// parser/parser.h
// main parser file
#include "structures/array.h"
#include "utils/tcp.h"
#define INIT_PARSED_DATA_CAPACITY 4
// parse a stream of TCP data
// params:
// - stream - the stream to parse
// - parsed_len - pointer to inform how much of the stream was parsed (not all if e.g. start of data is there, but the end isn't yet)
// returns:
// array of parsed data
extern DynArray parse_stream(TCPStream *stream, size_t *parsed_len);
|