Manual Reference Pages - SP_GET_VS_SET_MEMBERS (3)
SP_get_vs_set_members, SP_scat_get_vs_set_members - Extract list of members of a particular VS set from membership message
int SP_get_vs_set_members( const char * memb_mess, const vs_set_info *vs_set, char member_names[MAX_GROUP_NAME], int member_names_count);
int SP_scat_get_vs_set_members( const scatter * memb_mess_scat, const vs_set_info *vs_set, char member_names[MAX_GROUP_NAME], int member_names_count);
SP_get_vs_set_members and its scatter variant extract the list of members of a particular VS set.
The members are stored into an array of strings, each of which is MAX_GROUP_NAME characters in length.
The number of strings (names) in the array should be provided 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.
Returns a postivive value on success or one of the following errors ( < 0 ):
The allocated array of member names can not hold the number of
members in this VS set. No data is parsed. Reallocate
a larger array of member names (the required number is available
in the corresponding vs_set_info struct) and call this function again.
Yair Amir <firstname.lastname@example.org>
Jonathan Stanton <email@example.com>
|SPREAD ||SP_GET_VS_SET_MEMBERS (3) ||February 2006 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.