prmcastrequest.rst (715B)
1 PRMcastRequest 2 ============== 3 4 Structure used to specify values for the ``PR_SockOpt_AddMember`` and 5 ``PR_SockOpt_DropMember`` socket options that define a request to join 6 or leave a multicast group. 7 8 9 Syntax 10 ------ 11 12 .. code:: 13 14 #include <prio.h> 15 16 struct PRMcastRequest { 17 PRNetAddr mcaddr; 18 PRNetAddr ifaddr; 19 }; 20 21 typedef struct PRMcastRequest PRMcastRequest; 22 23 24 Fields 25 ~~~~~~ 26 27 The structure has the following fields: 28 29 ``mcaddr`` 30 IP multicast address of group. 31 ``ifaddr`` 32 Local IP address of interface. 33 34 35 Description 36 ----------- 37 38 The ``mcaddr`` and ``ifaddr`` fields are of the type :ref:`PRNetAddr`, but 39 their ``port`` fields are ignored. Only the IP address (``inet.ip``) 40 fields are used.