答复: [gloox-dev] can I talk with msn or icq using gloox?
From: "archer.xu" <pursue.xu@xxxxxxxxx>
Date: Thu, 20 Mar 2008 06:36:20 +0100 (CET)
Thank you for your time.

Now 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:
    virtual void onConnect()
    {
        JID id("wwwjjj777%hotmail.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='wwwjjj777%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>
"
But my friend never see the message.

Thank you.

-----邮件原件-----
发件人: Dmitry Nezhevenko [mailto:dion@xxxxxxxxx] 
发送时间: 2008 03 19 AM 06:17
收件人: gloox-dev@xxxxxxxxxx
主题: Re: [gloox-dev] can I talk with msn or icq using gloox?

On Tue, Mar 18, 2008 at 03:49:15PM +0800, archer.xu wrote:
> 
> Is gloox support that? If no, then what should I do to make it. 
> 

gloox is a implementation of Jabber. Using transports (jabber components)
you can communicate with MSN/Yahoo contacts, however you will need to do
followed:

1. Setup jabber server and MSN/Yahoo transport (Or maybe use some public
   server)
2. Register account on this jabber server.
3. Register on transport (Usually by sending your MSN/Yahoo username and
   password).
4. Authorize transport contact

After this you can send messages to yahooid@xxxxxxxxxxxxxxxxxxx or
msnid@xxxxxxxxxxxxxxxxx (MSN id is just email address. You will need to
replace "@" character with "%").

--
WBR, Dmitry