- Parameters
-
so | - socket, which should join the multicast group |
maddr | - multicast address group string (e.g. "224.0.1.1") |
mport | - multicast port |
- Returns
- > 0 successful
- = 0 no socket
- < 0 error
This function adds the specified multicast group to the internal address filter hash table. All packets from this multicast address will pass the address filter. For the UDP socket net_recv() or the callback function method may be used to receive any multicast data. It's allowed to specify more than one group/port for a UDP socket.
- Library:
- net.lib
- Prototype:
- net.h
- Examples:
- Multicast.c.