socket_mcleave6(3)
π NAME π
okay so bestie, this is the tea on socket_mcleave6(3) β she's a section 3 library function and her whole job is: leave a multicast group. πͺπ That's it. That's the gig.
β¨ SYNTAX β¨
first things first, you gotta pull in the header, like:
#include <libowfat/socket.h>
and the signature itself, no cap:
int socket_mcleave6(int s, const char groupip[16]);
π¦ DESCRIPTION π¦
So socket_mcleave6 leaves the IPv6 multicast group groupip. Like, it's the Irish goodbye of networking β you were in the group chat, now you're not. π
If something goes wrong, socket_mcleave6 returns -1, and it sets errno appropriately. So if you get that -1 back, don't panic β check errno, she's telling you exactly what happened. π
π SEE ALSO π
socket_mcjoin6(3)β the join, the other half of the story πsocket_mcleave4(3)β same energy, but IPv4 πsocket_getifidx(3)β for when you need the interface index β
and that's the whole page, bestie π«Ά this one lives in the Library Functions Manual, and there's no date field filled in on it β she's timeless like that π mwah, go forth and leave your multicast groups πβ¨
π¦ 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