Struct:group req

Jump to: navigation, search
#include <trsocket.h>
 * Structure used by setsockopt() options MCAST_JOIN_GROUP and
 * MCAST_LEAVE_GROUP to join or leave an IP multicast group
 * address (see RFC 3678 section 5.1).
 * Supports IPv4 (IGMP) and IPv6 (MLD).
struct group_req
    ttUser32Bit             gr_interface; /* interface index */
    struct sockaddr_storage gr_group;     /* group address */

group_req Parameters

  • gr_interface
    Index of the corresponding configured interface as returned by if_nametoindex(). Note that a zero index is valid if the user has either designated a default multicast interface for the socket via the IP_MULTICAST_IF or IPV6_MULTICAST_IF socket options, or designated a default multicast interface for the system via tfSetMcastInterface() or tf6SetMcastInterface().
  • gr_group
    Destination multicast group address (IPv4 or IPv6).