#define Is_unreliable_mess(type) (type & UNRELIABLE_MESS ) #define Is_reliable_mess(type) (type & RELIABLE_MESS ) #define Is_fifo_mess(type) (type & FIFO_MESS ) #define Is_causal_mess(type) (type & CAUSAL_MESS ) #define Is_agreed_mess(type) (type & AGREED_MESS ) #define Is_safe_mess(type) (type & SAFE_MESS ) #define Is_regular_mess(type) (type & REGULAR_MESS ) #define Is_self_discard(type) (type & SELF_DISCARD ) #define Is_reg_memb_mess(type) (type & REG_MEMB_MESS ) #define Is_transition_mess(type) (type & TRANSITION_MESS ) #define Is_caused_join_mess(type) (type & CAUSED_BY_JOIN ) #define Is_caused_leave_mess(type) (type & CAUSED_BY_LEAVE ) #define Is_caused_disconnect_mess(type) (type & CAUSED_BY_DISCONNECT ) #define Is_caused_network_mess(type) (type & CAUSED_BY_NETWORK ) #define Is_membership_mess(type) (type & MEMBERSHIP_MESS )
The above macro functions should be used to determine the message type (membership or data) and the specific type. The above constants are used when calling SP_multicast, the macro functions are provided as an easier way to check message type upon receipt. These functions correspond directly to testing for the above types.