#include <dolphin/socket.h>
typedef struct SOIpMreq
{
SOInAddr multiaddr; // IP address of group
SOInAddr interface; // IP address of interface
} SOIpMreq;
SOIpMreq structure is used to join and leave the IP host groups
with SO_IP_ADD_MEMBERSHIP and SO_IP_DROP_MEMBERSHIP
options for
SOSetSockOpt().
multiaddr |
IP multicast address of group. |
interface |
Local IP address of interface. If SO_INADDR_ANY is
specified, the default interface will be chosen for
SO_IP_ADD_MEMBERSHIP and the first matching group is dropped for
SO_IP_DROP_MEMBERSHIP. |