---
name: "socket_mcleave4"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/socket_mcleave4"
---

# socket\_mcleave4(3)

leave a multicast group

## NAME

socket\_mcleave4 - leave a multicast group

## SYNTAX

**#include \<libowfat/socket.h\>**

int **socket\_mcleave4**(int *s*, const char *groupip*\[4\]);

## DESCRIPTION

socket\_mcleave4 leaves the IPv4 multicast group *groupip*.

If something goes wrong, socket\_mcleave4 returns -1, setting errno appropriately.

## SEE ALSO

[socket\_mcjoin4(3)](/socket_mcjoin4/3.md), [socket\_mcleave6(3)](/socket_mcleave6/3.md), [socket\_getifidx(3)](/socket_getifidx/3.md)
