[Spread-users] Newbie - How to create group/membership?

John Robinson jr at vertica.com
Mon Oct 23 23:39:20 EDT 2006


Chan,

I found that the examples included with the sources were an excellent 
introduction to how to write an application and to show spread doing its 
thing.  The observant would find traces of examples/user.c in my 
application.

/jr
---
John Schultz wrote:
> Hi Chan,
> 
> Groups and membership in Spread are created dynamically on the fly in 
> response to client requests.  When a client calls SP_join() on some 
> group name, if the group does not already exist, then it is created at 
> that time upon demand.  If the group already exists (i.e. - other 
> clients have already SP_join()'ed into that group), then the new member 
> is added to the group and a membership change message is delivered to 
> all the current members.  Similarly, if a client is in a group and then 
> either SP_leave()s or disconnects then the members will recieve a 
> membership change message that removes that client from the group.  When 
> the last member either SP_leave()s or disconnects from Spread, then the 
> group ceases to exist.
> 
> Cheers!
> John
> 
> ---
> John Schultz
> Spread Concepts
> Phn: 443 838 2200
> 
> On Mon, 23 Oct 2006, Chan Nan wrote:
> 
>> Hi,
>>
>> I've finally got the spread daemon up and running.
>> Now, Do I need to set up the groups/memberships so I
>> can have different processes communicating with each
>> other? I read the manual but didn't not quite see it
>> there. I've read the man page of spread but not much.
>> I've went thru the whole mailing list archive but
>> don't see it either. Can you please give me a pointer?
>>
>> Thanks a lot...
>>
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> _______________________________________________
>> Spread-users mailing list
>> Spread-users at lists.spread.org
>> http://lists.spread.org/mailman/listinfo/spread-users
>>
> 
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users




More information about the Spread-users mailing list