Gloox client: no incoming messages
From: Diego Donate <diego.donate@xxxxxxxxxxx>
Date: Fri, 27 Mar 2009 21:31:13 +0100 (CET)
Hi,
 
I am using the Gloox jabber stack and I connect to the server (other users
see my 'online'). BUT I have problems with messages handling:
 
According to the API doc, I have 'MyClass':
 
.h:
     class MyClass: MessageHandler, MessageSessionHandler,
MessageEventHandler, ChatStateHandler
 
.cpp:
     void MyClass::handleMessage( Stanza* pData, MessageSession* pSession)
 
     void MyClass::handleMessageSession( MessageSession *pSession )
 
     void MyClass::handleMessageEvent( const JID& from, MessageEventType
event )
 
     void MyClass::handleChatState( const JID& from, ChatStateType state )
 
If I start a chat with another user I receive the next incoming messages:
     1st: event in 'handleMessageSession()'
     2nd: event in 'handleMessage()'
 
but if another user starts a chat with me, I don't receive the messages in
that moment. In fact, I have seen that no message is sent from the server to
my client...
 
If I reconnect my client,  then I receive all of them at the beggining (from
the previous session), also 2 events...
 
Any idea about why is that?

Thanks in advance