| 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. |
| Example |
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");
}
|