lc_channel_oti_peek(3)

lc_channel_oti_peek3

Peek at oti header

Usage

#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.

Library

Librecast library (liblibrecast, -llibrecast)

Overview

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.

Return value

lc_channel_oti_peek() returns zero on success. On error, -1 is returned, and errno is set to indicate the error.

Errors

EBADMSG

The header is malformed, or T does not match the expected value for chan.

errno can also be set to any of the errors returned by lc_socket_recv(3)

From liblibrecast-dev 0.9.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.