#include <rtl.h>
BOOL igmp_leave (
U8 *group_ip); /* IP Address of the Host Group. */
Description
The igmp_leave function requests that this host gives up
its membership in the host group identified by group_ip. After
the upper-layer has requested to leave the host group, datagrams
destined to a particular group can not be received, but are silently
discarded by the IP-layer.
The igmp_leave function is in the RL-TCPnet library. The
prototype is defined in rtl.h.
Return Value
The igmp_leave function returns __TRUE when this host
successfully left a host group. Otherwise, the function returns
__FALSE.
U8 sgroup[4] = { 238, 0, 100, 1};
..
if (igmp_leave (sgroup) == __TRUE) {
printf ("This Host has left the group: %d.%d.%d.%d\n",
sgroup[0],sgroup[1],sgroup[2],sgroup[3]);
}
else {
printf ("Failed to leave a group, this host is not a member.\n");
}
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.