Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Draco #1
Member since Feb 2007 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Message Receiv and Send
Hi, Everyone:

This question maybe very simple to you, and it is difficult to me, a new person to this project.

I download the sample project and build under VS2003, and change the server from localhost to my intranet ip (192.168.1.147),  run the server and one MiniClient (login as item1@192.168.1.47) at my pc, run another MiniClient at antoher PC (192.168.1.253). Both MiniClients login successfully.

There are somting seem to be wrong:

1. the two MiniClient can't see the online message.
2. cant send chat message between the two MiniClient.

Are there something wrong? Thanks for any help.


The following are the XML debug info at the MiniClient logined as item2:

SEND: <stream:stream to='192.168.1.147' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
RECV: <stream:stream xmlns:stream="http://etherx.jabber.org/streams" from="192.168.1.147" id="e4aaeb57" >
SEND: <iq xmlns="jabber:client" id="agsXMPP_1" type="get" to="192.168.1.147"><query xmlns="jabber:iq:auth"><username>item2</username></query></iq>
RECV: <iq xmlns="jabber:client" from="192.168.1.147" id="agsXMPP_1" type="result"><query xmlns="jabber:iq:auth"><username>item2</username><password /><digest /></query></iq>
SEND: <iq xmlns="jabber:client" id="agsXMPP_2" to="192.168.1.147" type="set"><query xmlns="jabber:iq:auth"><username>item2</username><digest>f05edf1ebb0c87a903a171296d2445df74719395</digest><resource>MiniClient</resource></query></iq>
RECV: <iq xmlns="jabber:client" from="192.168.1.147" id="agsXMPP_2" type="result" />
SEND: <iq xmlns="jabber:client" id="agsXMPP_3" type="get" to="192.168.1.147"><query xmlns="jabber:iq:agents" /></iq>
SEND: <iq xmlns="jabber:client" id="agsXMPP_4" type="get"><query xmlns="jabber:iq:roster" /></iq>
RECV: <iq xmlns="jabber:client" id="agsXMPP_4" type="result"><query xmlns="jabber:iq:roster"><item subscription="both" jid="item1@192.168.1.147" name="Item 1"><group>192.168.1.147</group></item><item subscription="both" jid="item2@192.168.1.147" name="Item 2"><group>192.168.1.147</group></item><item subscription="both" jid="item3@192.168.1.147" name="Item 3"><group>192.168.1.147</group></item><item subscription="both" jid="item4@192.168.1.147" name="Item 4"><group>192.168.1.147</group></item><item subscription="both" jid="item5@192.168.1.147" name="Item 5"><group>192.168.1.147</group></item><item subscription="both" jid="item6@192.168.1.147" name="Item 6"><group>192.168.1.147</group></item><item subscription="both" jid="item7@192.168.1.147" name="Item 7"><group>192.168.1.147</group></item><item subscription="both" jid="item8@192.168.1.147" name="Item 8"><group>192.168.1.147</group></item><item subscription="both" jid="item9@192.168.1.147" name="Item 9"><group>192.168.1.147</group></item><item subscription="both" jid="item10@192.168.1.147" name="Item 10"><group>192.168.1.147</group></item><item subscription="both" jid="item1@jabber.org" name="Item JO 1"><group>JO</group></item><item subscription="both" jid="item2@jabber.org" name="Item JO 2"><group>JO</group></item><item subscription="both" jid="item3@jabber.org" name="Item JO 3"><group>JO</group></item><item subscription="both" jid="item4@jabber.org" name="Item JO 4"><group>JO</group></item><item subscription="both" jid="item5@jabber.org" name="Item JO 5"><group>JO</group></item><item subscription="both" jid="item6@jabber.org" name="Item JO 6"><group>JO</group></item><item subscription="both" jid="item7@jabber.org" name="Item JO 7"><group>JO</group></item><item subscription="both" jid="item8@jabber.org" name="Item JO 8"><group>JO</group></item><item subscription="both" jid="item9@jabber.org" name="Item JO 9"><group>JO</group></item><item subscription="both" jid="item10@jabber.org" name="Item JO 10"><group>JO</group></item></query></iq>
SEND: <presence xmlns="jabber:client"><status /><priority>10</priority></presence>
SEND: <presence xmlns="jabber:client"><show>chat</show><status /><priority>10</priority></presence>
SEND: <message xmlns="jabber:client" type="chat" to="item1@192.168.1.147"><body>1234</body></message>
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Hello,

there is nothing wrong ;-)
The server sample is only a very basic example which should give you an idea how you can build a server with our SDK. It supports no message routing and no presence. This is the reason why you don't get the messages and no presences.
You should download one of the other free servers for testing. The most users here use Wildfire because it's very easy to setup and get started.
Software Developer
AG-Software
Avatar
Draco #3
Member since Feb 2007 · 2 posts
Group memberships: Members
Show profile · Link to this post
Jabber, thanks for you reply.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS