check connection status
From: Marc <mbalcells@xxxxxxxxx>
Date: Tue, 17 Nov 2009 19:43:49 +0100 (CET)
Hello, I'm trying to build a bot with gloox 0.9.9.12, the objective is to
read values from my computer automatically and send them to another client
through a jabber server.
Everything works fine so far, what I don't understand is why if I lose
network connectivity, my bot doesn't get aquainted and keeps sending the
messages. I've tried checking connectivity with ClientBase::state() but It
always returns a connected state, Client::status() doesn't seem to return
anything.

I've seen some of the messages are lost while there's no network
connectivity and some of them are resent once the network is restablished it
almost looks like it has a small send buffer.

Is there any effective way to check if a server connection is still
available prior to sending a message? btw I'm using simple send(message)
without a messageSession handler.


Thank's
-- 
Marc.