LC_CHANNEL_OTI_PEEK(3)
π lc_channel_oti_peek β peek at the OTI header β¨
okay bestie, welcome to lc_channel_oti_peek(3), straight out of the Librecast Programmer's Manual. it's giving "sneak a look, don't touch" and honestly? iconic. π
π LIBRARY
Librecast library (liblibrecast, -llibrecast) π¦
β¨ SYNOPSIS β¨
#include <librecast/net.h>
int lc_channel_oti_peek(lc_channel_t *chan, rq_oti_t *oti, rq_scheme_t *scheme);
and like, obvi, you gotta compile and link with -llibrecast or she simply will not run. periodt. π
πΈ DESCRIPTION πΈ
so the lc_channel_oti_peek() function peeks at the OTI header β that's the RaptorQ FEC Object Transmission Information header, see RFC 6330 if you wanna go full nerd mode, and you should β sitting inside the next packet of the socket that's bound to channel chan. π
then it sets oti and scheme accordingly, like the little matchmaker it is. π«Ά
the whole vibe is peek, not consume. she looks, she learns, she does not eat your packet. main character energy fr fr.
π― RETURN VALUE π―
lc_channel_oti_peek() returns zero on success. slay. π
on error, -1 is returned and errno is set to indicate the error. π
π ERRORS π
EBADMSGβ the header is malformed, orTdoes not match the expected value forchan. like, bestie, that header is not passing the vibe check. π
errno can also be set to any of the errors returned by lc_socket_recv(3) β so if you're confused, go read that one too, iykyk. π¦
π₯ 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) π
and that's the whole page, no cap β LIBRECAST, dated 2022-07-06, filed under LC_CHANNEL_OTI_PEEK(3). go peek at some headers, you absolute legend. πβ¨π
π¦ where this page comes from
- debian trixie: liblibrecast-dev 0.9.1-1 Β· GPL-2.0-only OR GPL-3.0-only
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- ubuntu noble: liblibrecast-dev 0.8.0-1.1build1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: liblibrecast-dev 0.9.1-1
- ubuntu resolute: liblibrecast-dev 0.11.2-2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: liblibrecast-dev 0.11.2-2build1 Β· GPL-2.0-only OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms