Hi,
Thanks for the response.
I copied the code from the "message_example" file. My client connects (other
users see it as 'online') and receives connection events
(ConnectionListener) and presence events (PresenceHandler). So the problem
does not seem to be in the connection, but only in chat sessions.
BUT I can start a chat with another user (A), and A receives my message. In
fact, if A writes something in this (just created by me) chat, I do receive
the message!!!
The problem is when, once my client is connected, A starts a chat with me. I
do not receive any jabber message in this moment (seen with a sniffer), BUT
if I disconnect and connect again, that old message arrives to my machine...
(but not new chats messages...)
There are several users connected to the server, but I am trying the chat
with 2 users, I don't understand what you said about 'multi-session',
sorry...
It is so strange... It seems like I must do anything else once connected, or
sth. like that...
Thanks a lot
Diego
_____
De: Eloi Bail [mailto:eloi.bail@xxxxxxxxx]
Enviado el: lunes, 30 de marzo de 2009 9:40
Para: gloox-dev@xxxxxxxxxx
Asunto: Re: [gloox-dev] Gloox client: no incoming messages
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