[jdev] Questions with JEP 045
rthummal
rthummal at csnet.cs.odu.edu
Mon Apr 5 19:14:04 CDT 2004
Hi,
I got a question about JEP 045(Described in http://www.jabber.org/jeps/jep-0045.html#enter)
I am providing the contents of this JEP where I am really confused.
Example 18. Jabber User Seeks to Enter a Room (Multi-User Chat)
<presence
from='hag66 at shakespeare.lit/pda'
to='darkcave at macbeth.shakespeare.lit/thirdwitch'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
Once Jabber user enters a room(in this case darkcave at macbeth.shakespeare.lit/thirdwitch),
server sends others(in this room) presence to this new user.
Example 19. Service Sends Presence from Existing Occupants to New Occupant
<presence
from='darkcave at macbeth.shakespeare.lit/firstwitch'
to='hag66 at shakespeare.lit/pda'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='owner' role='moderator'/>
</x>
</presence>
<presence
from='darkcave at macbeth.shakespeare.lit/secondwitch'
to='hag66 at shakespeare.lit/pda'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='admin' role='moderator'/>
</x>
</presence>
These are the stanzas provided by the JEP 045 specification document. Once the client receives
these messages how does it know about the rest of the members in that room. No where their
nickname or jid is specified in the presence stanza.
Example 20. Service Sends New Occupant's Presence to All Occupants
<presence
from='darkcave at macbeth.shakespeare.lit/thirdwitch'
to='crone1 at shakespeare.lit/desktop'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='member' role='participant'/>
</x>
</presence>
<presence
from='darkcave at macbeth.shakespeare.lit/thirdwitch'
to='wiccarocks at shakespeare.lit/laptop'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='member' role='participant'/>
</x>
</presence>
<presence
from='darkcave at macbeth.shakespeare.lit/thirdwitch'
to='hag66 at shakespeare.lit/pda'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<item affiliation='member' role='participant'/>
</x>
</presence>
Here even the case is the same as all the other clients receive the presence of
hag66 at shakespeare.lit/pda. How does client at crone1 at shakespeare.lit/desktop and
wiccarocks at shakespeare.lit/laptop know about presence of hag66 at shakespeare.lit/pda, as this
jid is not mentioned anywhere.
Any help on this would be great.
Thanks
Raghu
More information about the JDev
mailing list