logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

lc_channel_oti_peek - peek at OTI header

Description

       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.

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)

Library

       Librecast library (liblibrecast, -llibrecast)

Name

       lc_channel_oti_peek - peek at OTI header

Return Value

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

See Also

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)

LIBRECAST                                          2022-07-06                             LC_CHANNEL_OTI_PEEK(3)

Synopsis

#include<librecast/net.h>intlc_channel_oti_peek(lc_channel_t*chan,rq_oti_t*oti,rq_scheme_t*scheme);

       Compile and link with -llibrecast.

See Also