Hi,
I am not sure to clearly understand you. But for me it sounds like session
handling problem.
Is your session handler called when your client send a message (make a
simple printf on the XMPP server)? The same question for message handler.
I advice you to use "message_example" in Gloox example to test if the
connection client XMPP - server XMPP works. Notice that it doesn't work for
several clients connected to the same server (multi-session not handled)
BR,
Eloi
On Mon, Mar 30, 2009 at 10:14 AM, Diego Donate <diego.donate@xxxxxxxxxxx>wrote:
>
> I'm not sure if I understand you: when someone starts a chat with me, I
> receive nothing, what should I save in that moment? Or should I save
> anything previously?
>
> Thanks a lot
>
>
> ------------------------------
> *De:* Di Yao [mailto:dyao750@xxxxxxxxxxxxxxxxxxx]
> *Enviado el:* viernes, 27 de marzo de 2009 22:43
> *Para:* gloox-dev@xxxxxxxxxx
> *Asunto:* Re: [gloox-dev] Gloox client: no incoming messages
>
> Are you saving both messages sessions somewhere?
>
>
>
>
>
> *From:* Diego Donate [mailto:diego.donate@xxxxxxxxxxx]
> *Sent:* Friday, March 27, 2009 2:28 PM
> *To:* gloox-dev@xxxxxxxxxx
> *Subject:* [gloox-dev] Gloox client: no incoming messages
>
>
>
> 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
>
>
>
> --
> gloox-dev mailing list
> to unsubscribe:
> send a message with subject 'unsubscribe gloox-dev' to
> minimalist@xxxxxxxxxx
>