[JDEV] Autoupdate
Sami Haahtinen
ressu at ressukka.net
Tue Jul 16 11:26:13 CDT 2002
On Tue, Jul 16, 2002 at 04:04:29AM -0400, Kriggs wrote:
> How does the server a client is connected to know that there is a new version
> available? Does the server query some database when the client asks? From
> what I understand, the server DOES have something to do with this...
like Ben already explained, you can send a certain type of presence to
the agent, with my agent we use format like:
<iq to='client at update.ressukka.net/50'i type='get'>
<query xmlns='jabber:iq:autoupdate'/>
</iq>
where client is the name of the client in question (which is marked to
the database) and 50 is the current version of the client. the server
will return new version(s) as a result to that query
ofcourse, this is the case with my agent, but the common idea is that
the client sends a request and tells it's current version with it. you
could also do it so that you trigger the agent to probe you, but just
telling the agent your version is the simplest and fastest way..
Sami
--
-< Sami Haahtinen >-
-[ Notify immediately if you do not receive this message ]-
-< 2209 3C53 D0FB 041C F7B1 F908 A9B6 F730 B83D 761C >-
More information about the JDev
mailing list