[jdev] Re: Opening Stream with Session Id

Alexander Gnauck gnauck at ag-software.de
Wed May 11 02:29:43 CDT 2005


>> when the client connect to jabber server by sending the open stream tag
>> <stream:stream>, and server reply the open stream tag with session id, 
>> then
>> we can start sending XML Packet, i wonder to know what we have to do with
>> the open stream tag sent by server to client? do we need the open stream
>> tag with session id(send by server) to tracking to the server?  or Is it
>> just easy for the server to close the connection by sending close stream
>> tag </stream:stream>?
>
> Stream IDs are used in server dialback and in old-style digest
> authentication:
>
> http://www.xmpp.org/specs/rfc3920.html#dialback
> http://www.jabber.org/jeps/jep-0078.html

as peter mentioned you need it for auth and dialback.
You also need the stream tag to detect the stream version and 
detecting/caching the xml namespaces. So it depends on the your software 
design and xml parser what you do with this tag.
http://www.xmpp.org/specs/rfc3920.html#streams

Alex 






More information about the JDev mailing list