lc_channel_oti_peek
peek at OTI header
- Provided by: liblibrecast-dev (Version: 0.8.0-1.1build1)
- Source: librecast
- Report a bug
peek at OTI header
Librecast library (liblibrecast, -llibrecast)
#include <librecast/net.h>
int lc_channel_oti_peek(lc_channel_t *chan, rq_oti_t *oti, rq_scheme_t *scheme);
Compile and link with -llibrecast.
The lc_channel_oti_peek() function peeks at the OTI header (RaptorQ FEC Object Transmission Information header - see RFC 6330) in the next packet of the socket bound to channel chan and sets oti and scheme accordingly.
lc_channel_oti_peek() returns zero on success. On error, -1 is returned, and errno is set to indicate the error.
errno can also be set to any of the errors returned by lc_socket_recv(3)
lc_channel_new(3), lc_channel_close(3), lc_channel_recv(3), lc_channel_coding_set(3), lc_socket_recv(3) rq_pid2sbn(3), rq_pid2esi(3), rq_pidset(3), rq_pidsetsbn(3), rq_pidsetesi(3), lcrq(7)