Definitions

Multicast check

Macro for testing multicast messages

#define IS_MULTICAST(a)   ((a & 0x00f00000) == 0x00e00000 )
 

Detailed Description

Macro Definition Documentation

#define IS_MULTICAST (   a)    ((a & 0x00f00000) == 0x00e00000 )

use with socket_struct ->mc_group_addr

if (IS_MULTICAST(so-> mc_group_addr))
{
printf (" New multicast data received\r\n");
}
else
{
printf (" New data received\r\n");
}
Examples:
Multicast.c.