[JDEV] Ping protocol for Jabber
Trejkaz Xaoza
trejkaz at xaoza.net
Wed Dec 31 22:25:45 CST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 1 Jan 2004 12:49, Tony Cheung wrote:
> Is there any ping mechanism that we could used in Jabber for making sure
> the connection and the server is alive?
Normal keep-alives are typically a single space character flushed down the
stream. However I know it isn't truly a ping. :)
The trivial way to ping is to send a message to your own JID. If I'm right in
interpreting the semantics, a message with no body won't be displayed in a
client anyway, so as long as you tag the outgoing message with an 'id'
attribute and wait for the incoming message with the same id.
TX
- --
'Every sufficiently advanced technology is indistinguishable from magic' -
Arthur C Clarke
'Every sufficiently advanced magic is indistinguishable from technology' - Tom
Graves
Email: Trejkaz Xaoza <trejkaz at xaoza.net>
Web site: http://xaoza.net/trejkaz/
Jabber ID: trejkaz at jabber.xaoza.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/86FMmifzwBMPxxoRAkiuAKCVtLa/XwlCBzGhNBQxtogr2RqJXQCgvlfW
MEv2/HOiaB98pjcv68OpCAA=
=W7CV
-----END PGP SIGNATURE-----
More information about the JDev
mailing list