socket_mcjoin4 - Man Page

join a multicast group

Syntax

#include <socket.h>

int socket_mcjoin4(int s,const char groupip[4],const char interface[4]);

Description

socket_mcjoin4 joins the IPv4 multicast group groupip on interface.

If something goes wrong, socket_mcjoin4 returns -1, setting errno appropriately.

See Also

socket_mcleave4(3), socket_mcjoin6(3), socket_getifidx(3)

Referenced By

socket_mchopcount6(3), socket_mcjoin6(3), socket_mcleave4(3), socket_mcloop4(3), socket_mcttl4(3).