blob: 14ab75e51fab9fc8657780b72a5337d5f8cbd949 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// 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);
|