Adds a System.Net.Sockets.UdpClient to a multicast group.
- ifindex
- The interface index associated with the local IP address on which to join the multicast group.
- multicastAddr
- The multicast System.Net.IPAddress of the group you want to join.
Before joining a multicast group, be sure the socket is bound to the port or endpoint. You can do this by calling one of the constructors that accepts a port or an endpoint as parameter.
The infindex parameter is used to identify a hardware interface on the same link.
There are several multicast address ranges to choose from. Refer to the IETF RFC 2375.
You cannot call erload:System.Net.Sockets.UdpClient.JoinMulticastGroup on a System.Net.Sockets.UdpClient constructed without a specific local port (that is, using the UdpClient.#ctor or UdpClient.#ctor(AddressFamily) constructor).