Next: read_hdr, Previous: read_dpkt_defs, Up: Internal Functions
Read and store header parameter definitions.
#include <bpipe/bpipe.h>static int read_hdr_defs( BPipe *bpipe, char **buf, size_t *buf_len );
BPipe *bpipe
- the binary pipe to read
char **buf
- the input buffer to use
size_t *buf_len
- the length of the input buffer
This routine reads header parameter definitions from a binary pipe, parses them, and stores the results in the binary pipe structure.
It returns zero upon success, non-zero upon failure. It sets
bpipe_errno
upon failure.
Upon error bpipe_errno
is set to one of the following errors:
BPEBADPIPE
BPENOMEM