Thanks. Sending a message to my own JID sounds like a workaround solution.
Is there any other solution? Does any existing Jabber client does any Ping mechanism?
Best Regards, Tony Cheung
Trejkaz Xaoza wrote:
-----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 <[EMAIL PROTECTED]> Web site: http://xaoza.net/trejkaz/ Jabber ID: [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/86FMmifzwBMPxxoRAkiuAKCVtLa/XwlCBzGhNBQxtogr2RqJXQCgvlfW MEv2/HOiaB98pjcv68OpCAA= =W7CV -----END PGP SIGNATURE-----
_______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
