继续研究Gloox3

     终于在openfire服务器上认证成功了,看到服务器上亮起来的小绿灯,虽然只是一小步成功,可是还是让我狠狠地小小得意了一把。

     看了看才知道就为了去服务器登录,居然和服务器做了无数次交互(有点夸张)。

 

不信?看看我记录的日志:

 

[2011-02-19 19:29:01] level: 0;area:8; This is gloox 0.9.9.12, connecting...

 

[2011-02-19 19:29:01] level: 0;area:32; connecting to xyt (192.168.1.200:5222)

 

[2011-02-19 19:29:01 C->S] level:0; <?xml version='1.0' ?><stream:stream to='xyt' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'  xml:lang='en' version='1.0'>

 

[2011-02-19 19:29:01 S->C] level:0; <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='xyt' id='36fe6b4a' xml:lang='en' version='1.0'/>

 

[2011-02-19 19:29:01 S->C] level:0; <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><auth xmlns='http://jabber.org/features/iq-auth'/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>

 

[2011-02-19 19:29:01 C->S] level:0; <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>

 

[2011-02-19 19:29:02 S->C] level:0; <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cmVhbG09Inh5dCIsbm9uY2U9IlZieFNOdkNmTThIUi8ybUlFUGN5UjB4WkZNQW9uYm10RGpEcWtzVm4iLHFvcD0iYXV0aCIsY2hhcnNldD0idXRmLTgiLGFsZ29yaXRobT0ibWQ1LXNlc3Mi</challenge>

 

[2011-02-19 19:29:02] level: 0;area:4; processing SASL challenge

 

[2011-02-19 19:29:02 C->S] level:0; <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9ImhpdHdkIixyZWFsbT0ieHl0Iixub25jZT0iVmJ4U052Q2ZNOEhSLzJtSUVQY3lSMHhaRk1Bb25ibXREakRxa3NWbiIsY25vbmNlPSIwMDAwMDAyOTAwMDA0ODIzMDAwMDE4YmUwMDAwNjc4NCIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC94eXQiLHJlc3BvbnNlPTU2Mzg2ZjRmMzQwZjMyZWNkNjI3ZmI4ZGExMTRhODM0LGNoYXJzZXQ9dXRmLTg=</response>

 

[2011-02-19 19:29:02 S->C] level:0; <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD0zYmYxZmFiMjE5NGI2ZWY4NzYyODQxMjFlODQyNjY0Yw==</success>

 

[2011-02-19 19:29:02] level: 0;area:4; SASL authentication successful

 

[2011-02-19 19:29:02 C->S] level:0; <?xml version='1.0' ?><stream:stream to='xyt' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'  xml:lang='en' version='1.0'>

 

[2011-02-19 19:29:03 S->C] level:0; <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='xyt' id='36fe6b4a' xml:lang='en' version='1.0'/>

 

[2011-02-19 19:29:03 S->C] level:0; <stream:features><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>

 

[2011-02-19 19:29:03 C->S] level:0; <iq type='set' id='bind'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>gloox</resource></bind></iq>

 

[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='bind' to='xyt/36fe6b4a'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>hitwd@xyt/gloox</jid></bind></iq>

 

[2011-02-19 19:29:03 C->S] level:0; <iq type='set' id='session'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>

 

[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='session' to='hitwd@xyt/gloox'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>

 

[2011-02-19 19:29:03 C->S] level:0; <iq id='uid1' type='get'><query xmlns='jabber:iq:private'><roster xmlns='roster:delimiter'/></query></iq>

 

[2011-02-19 19:29:03 C->S] level:0; <iq type='get' id='uid2'><query xmlns='jabber:iq:roster'/></iq>

 

[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='uid1' to='hitwd@xyt/gloox'><query xmlns='jabber:iq:private'><roster xmlns='roster:delimiter'/></query></iq>

 

[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='uid2' to='hitwd@xyt/gloox'><query xmlns='jabber:iq:roster'><item jid='wyy@xyt' name='wyy' subscription='both'><group>我的联系人</group></item></query></iq>

 

[2011-02-19 19:29:03 C->S] level:0; <presence><priority>0</priority></presence>

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值