LC_CHANNE..._OVERHEAD(3)
π LC_CHANNE..._OVERHEAD(3) β aka the "how many extra packets are we yeeting" page π
okay so bestie, welcome to the Librecast Programmer's Manual π¦ (that's the manual name, it lives up here at the top, consider it folded in and living its best life β¨). Today's episode: how many overhead packets your RaptorQ setup is gonna send. Buckle up, it's giving very specific and very important. π
β¨ NAME β¨
lc_ctx_coding_set, lc_channel_rq_overhead β set Librecast RaptorQ overhead packets.
ngl, the NAME line sayslc_ctx_coding_setwhile the SYNOPSIS down there sayslc_ctx_rq_overheadπ β we're just reporting what's on the page, no editing, no fixing, that's the rule. π
π LIBRARY π
Librecast library (liblibrecast, -llibrecast). That's the one, that's the vibe. π«Ά
π SYNOPSIS π
#include <librecast/net.h>
int lc_ctx_rq_overhead(lc_ctx_t *ctx, int overhead);
int lc_channel_rq_overhead(lc_channel_t *chan, int overhead);
Compile and link with -llibrecast. Don't forget it, it will simply not work and you will simply cry π
π DESCRIPTION π
so here's the tea, two whole functions, both obsessed with overhead:
lc_ctx_rq_overhead()β sets the default overhead packets for channels that get created subsequently using the contextctx. Like, it's setting the vibe for all the babies that come after π£lc_channel_rq_overhead()β sets RaptorQ overhead packets for a Librecast channel,chan, and it overrides any defaults it inherited from the parent Librecast context. main character energy, honestly π
chan is a pointer to a Librecast channel. yes, a pointer. yes, you have to deal with that. β¨
the overhead argument is the number of overhead packets to send in a single call to lc_channel_send(3) or lc_channel_sendmsg(3). the way that one number controls so much...
- if
overheadis>= 0, then a single call to a sending function withLC_CODE_FEC_RQenabled will causeK' + overheadpackets to be sent. slay π - if
overheadis< 0, then no automatic sending will occur. periodt. nothing goes out automatically, that's the whole rule π
π RETURN VALUE π
Returns the new overhead value. that's it, that's the return. short and iconic π«
π ERRORS π
None. literally none. a flawless, error-free queen. π
π₯ SEE ALSO π₯
lc_channel_new(3)lc_channel_close(3)lc_channel_send(3)lc_channel_sendmsg(3)lc_channel_set_sym_key(3)lc_ctx_new(3)lc_socket_setopt(3)lc_socket_recv(3)
go read those too, bestie, iykyk πβ¨
and that's a wrap!! this whole page is brought to you by LIBRECAST, dated 2025-03-24 πΈ β and yes the footer also says LC_CHANNE..._OVERHEAD(3) again because it's extra like that π
mwah, go forth and set your overhead ππ¦π§
π¦ where this page comes from
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- 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