Hi, all
Using gloox, I can login to the msn server. My friends can see me online.
Then I want to send them a message, I use code like this below:
--
virtual void onConnect()
{
JID id("xxx%hotmail.com@xxxxxxxxxxxxxxxxx
<mailto:xxx%25hotmail.com@xxxxxxxxxxxxxxxxx> ");
MessageSession *pSession = new MessageSession(j, id);
pSession->send("Can you receive a message? I am doing a test", "Hi");
j->disconnect();
}
--
Where "cavell-archer" is my computer's name. I use Openfire as my jabber
server.
Is the server name "msn.cavell-archer" wrong?
Bellow is the log printed:
--
log: level: 0, area: 16384, <presence><priority>0</priority></presence>
log: level: 0, area: 16384, <message type='chat'
from='oo@cavell-archer/8186470c ' to=xxx%hotmail.com@xxxxxxxxxxxxxxxxx'
id='uid4'><body>Can you receive a message? I am doing a
test.</body><subject>Hi</subject><thread>glooxuid3</threa
d></message>
--
I sniff and find nothing has been sent.
Can you help me, thank you in advance.
Archer.xu