[JDEV] XMPP to, from attributes

Ralph Meijer jabber.org at ralphm.ik.nu
Mon Jul 28 13:33:38 CDT 2003


On Mon, Jul 28, 2003 at 02:14:39PM -0400, John Gianola wrote:
> I have a quick question here, say you have a XMPP ver 1.0 client 
> connecting to a XMPP ver 1.0 Server. The client opens the stream as 
> usual and sets the 'to' attribute to something like 'shakespeare.lit' or 
> whatever. The server responds with a different 'from' attribute, say 
> 'chat1.shakespeare.lit', What does the client do with this new 'from'
> 
> for example:
> C: <?xml version='1.0'?>
>       <stream:stream
>           to='shakespeare.lit'
>           xmlns='jabber:client'
>           xmlns:stream='http://etherx.jabber.org/streams'
>           version='1.0'>
> S: <?xml version='1.0'?>
>       <stream:stream
>           from='chat1.shakespeare.lit'
>           id='id_123456789'
>           xmlns='jabber:client'
>           xmlns:stream='http://etherx.jabber.org/streams'
>           version='1.0'>
> 
> What happens?

The server is telling you that it wishes to be called chat1.shakespeare.lit
and that you should send messages to it using that address.

-- 
Groetjes,

Ralphm



More information about the JDev mailing list