[Spread-users] Identifying the sender
Jonathan Stanton
jonathan at cnds.jhu.edu
Wed Aug 18 12:09:53 EDT 2004
That is exactly what you want. A private group always has only "one"
member. The reason it is called a private _group_ is that it can be used
anywhere in spread that a regular 'group' can be used (to send to, receive
from, in a list of receivers, etc). It just will never have more then one
member.
getSender will return the private group
name of ONLY the sender of the message. So if A connected to daemon on
machine "server1" and it sends a message to the group, all of the
processes will get a message with the sender being "#A#server1" and the
getSender method will retrieve it once the message is received.
Cheers,
Jonathan
On Wed, Aug 18, 2004 at 02:35:34PM +0000, Gustavo Castro wrote:
>
>
> Hum, i see what you say, but the problem is that i´m using the Java
> interface for the spread. In order to receive, you do
> SpreadMessage message = connection.receive();
> with no calling to the SP_receive, and i don´t find out how to identify
> the sender. There is this method, getSender, but according to the
> definition it "Gets the message sender's private group." which would return
> me all the members of the group, that is, A, B, C, D and E.
> What am i missing?
>
> Thank you so much!!
>
--
-------------------------------------------------------
Jonathan R. Stanton jonathan at cs.jhu.edu
Dept. of Computer Science
Johns Hopkins University
-------------------------------------------------------
More information about the Spread-users
mailing list