Previous: bpipe_write_dpkts, Up: BPipe Manipulations
Write header information to a binary pipe's output channels.
#include <bpipe/bpipe.h>int bpipe_write_hdr(BPipe *bpipe);
BPipe *bpipe
- the binary pipe for which to output the header
bpipe_write_hdr
writes header information to a binary pipe's
output channels. It must be called after a call to bpipe_map
and before any data packets are written to the output channel(s).
no manipulation of header parameter definitions and data or data
packet field definitions should be done after invoking this
function.
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:
BPEBADARG
BPipe
hasn't been mapped (by bpipe_map
)
BPEIOERR
BPENOMEM