#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");
}
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.