[JDEV] Possible values for <iq>'s id attribute
David Waite
dwaite at jabber.com
Mon Oct 30 14:15:55 CST 2000
When you send out a packet (<message>,<presence>,<iq>), any returned
value will have the same id. Messages and Presence only really return a
on error, while iq always returns.
The id is used in this case to match a request with a response - since
the sending and receiving of data are not synchronized.
The other place id is used is within the <stream:stream> header. The
response from the server includes a unique id, this value is the seed
for digest authentication.
-David Waite
Lyndon Mark Durham wrote:
> Greetings Jabber Developers,
> I have noticed that in the
> documenatation for authentication that the examples use an id="1" or id
> set to some uniquevalue. Nonehteless while testing authetication using
> random id numbers the server always returns an <iq type='error'>. I have
> also noticed that the an id is sent back when sucessfully opening an
> XML stream to communicate with a jabber server- is this returned id the
> one that the server expects when attempting to create a resource through
> IQ authentication? Or are there other id's that can be used. TIA>
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list