socket_mchopcount6(3)
π socket_mchopcount6 β set multicast hop count π
okay bestie, welcome to the socket_mchopcount6(3) page from the Library Functions Manual β yes it's a real manpage, yes it's niche, and yes we're gonna make it make sense π«Ά
β¨ NAME β¨
socket_mchopcount6 β set multicast hop count π
πΈ SYNTAX πΈ
#include <libowfat/socket.h>
int socket_mchopcount6(int s,char TTL);
like. that's it. that's the whole vibe. no cap π
π¦ DESCRIPTION π¦
so basically, socket_mchopcount6 sets the maximum hop count of outgoing multicast packets on the socket s. periodt β¨
the way this works is lowkey iconic: every router that the packet passes through decrements the packet hop count by one, and if that count hits zero, the router just discards the packet π it's giving "you shall not pass" energy fr fr.
so if you set the maximum hop count to 1, for example? that keeps the packet propagation limited to the LAN. just the local network, nobody else invited, it's a private party π
and if something goes wrong? socket_mchopcount6 returns -1 and sets errno appropriately. so check that errno bestie, it's literally telling you what happened π
π SEE ALSO π
and that's the whole page, angel π it's socket_mchopcount6(3), straight out of the Library Functions Manual, and honestly? she ate. go forth and multicast responsibly π§ββοΈπΈβ¨
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms