int SP_get_vs_sets_info( const char * memb_mess, vs_set_info *vs_sets, int num_vs_sets, unsigned int *my_vs_set_index);
int SP_scat_get_vs_sets_info( const scatter * memb_mess_scat, vs_set_info *vs_sets, int num_vs_sets, unsigned int *my_vs_set_index);
SP_get_vs_sets_info and its scatter variant extract the list of VS sets provided in a Network membership message and store them into the
vs_sets array of
vs_set_info structs. The number of elements in the array should be provided in the
This function also returns an index of which VS set in the array corresponds to the current processs VS set. That index value is returned in the
memb_mess field or scatter field should be the body of a message that was returned in a previous
SP_receive call for a membership message.
The fields of a vs_set_info struct include
unsigned int num_members |
unsigned int member_offset |
member_offset field is the byte offset into the membership message body where this VS sets member list begins.
For each of the vs_set_info records in the array, the function
SP_get_vs_set_members will grab the actual array of member names for the specified VS set.