IPv4
µC/TCP-IP supports IPv4 multicasting with IGMP. In order to receive packets addressed to a given IPv4 multicast group address, the stack must have been configured to support multicasting in net_cfg.h
, Multicast Configuration, and that host group has to be joined.
The following examples show how to join and leave an IPv4 multicast group with µC/TCP-IP:
Refer to functions NetIGMP_HostGrpJoin() and NetIGMP_HostGrpLeave() for more details.
IPv6
µC/TCP-IP supports IPv6 multicasting with MLDP. In order to receive packets addressed to a given IPv6 multicast group address, With IPv6 MLDP is always enabled but you might need to increase the number of group, see Multicast Configuration.
Refer to functions NetMLDP_HostGrpJoin() and NetMLDP_HostGrpLeave() for more details.