January 2002
Beginner
480 pages
13h 15m
English
Similar to the jabber:iq:time namespace,
the jabber:iq:version namespace is used to make and respond to queries regarding the version
of the particular piece of software being addressed.
The query is formulated like this:
SEND: <iq type='get' id='ver-a' to='JID'> <query xmlns='jabber:iq:version'/> </iq>
Responses depend on the entity being queried. Here are responses from three different entities:
A client (sjabber):
RECV: <iq type='result' to='dj@yak/Work' from='sabine@yak/sjabber'>
<query xmlns='jabber:iq:version'>
<name>sjabber</name>
<version>0.4</version>
<os>linux</os>
</query>
</iq>
The Jabber server itself (well, the JSM):
RECV: <iq type='result' to='dj@yak/Work' from='sabine@yak/sjabber'>
<query xmlns='jabber:iq:version'>
<name>jsm</name>
<version>1.4.1</version>
<os>linux 2.2.12-45SAP</os>
</query>
</iq>
And the JUD component:
RECV: <iq type='result' to='dj@yak/Work' from='sabine@yak/sjabber'>
<query xmlns='jabber:iq:version'>
<name>jud</name>
<version>0.4</version>
<os>linux 2.2.12-45SAP</os>
</query>
</iq>
The jabber:iq:version namespace is used in the recipe
in Section 9.3 in Chapter 9.
Read now
Unlock full access