Although IP multicast traffic is sent to a single address, it is processed by multiple hosts. Collectively, the hosts listening to a specific IP multicast address are called a multicast group. With IP multicasting, only hosts that belong to a multicast group receive and process IP traffic sent to the group IP address. This process is similar to sending an e-mail message to an alias: only members of the alias receive the broadcast message. Multicasting is supported only on connectionless, UDP datagram sockets. For more information on membership in a multicast group, see Joining and Leaving a Multicast Group.
Other important aspects of IP multicasting include:
There are two types of messages used by IGMP:
When a host joins a multicast group, it sends an IGMP message to the All Hosts IP multicast address, 224.0.0.1, declaring its membership in a specific host group.
A router polls each network to verify members of a specific host group. If no hosts respond after the router makes several polls, it assumes no group members exist on that network. The router then stops propagating multicast traffic to that network and stops advertising to other routers data that it obtained previously about group members on that network.
The following section describes how to use Winsock functions in a Windows CE–based application to join a multicast group and receive IGMP support messages. It also describes how to send messages to a multicast address.