【技术应用】vs2010 libjingle login例子

折腾了一个星期,先是编译的问题,然后不知道如何使用,然后编译例子连接不上gtalk,很是郁闷

 

现在终于好了,虽然只是登陆,但对我来说已经知足了 

 

我的例子,修改的libjingle中的login例子,点击下载

 

 vs2010 libjingle login

 

 STATE_START

SEND >>>>>>>>>>>>>>>> : Sat Jan 08 00:40:07 2011

   <stream:stream to="gmail.com" xml:lang="*" version="1.0" xmlns:stream="http:/

/etherx.jabber.org/streams" xmlns="jabber:client">

 

STATE_OPENING

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:07 2011

   <stream:stream from="gmail.com" id="E6A6C9F0E20D064F" version="1.0" xmlns:str

eam="http://etherx.jabber.org/streams" xmlns="jabber:client">

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:07 2011

   <stream:features>

     <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">

       <required/>

     </starttls>

     <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">

       <mechanism>

         X-GOOGLE-TOKEN

       </mechanism>

     </mechanisms>

   </stream:features>

SEND >>>>>>>>>>>>>>>> : Sat Jan 08 00:40:07 2011

 

 

   <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:07 2011

   <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

 

SEND >>>>>>>>>>>>>>>> : Sat Jan 08 00:40:07 2011

   <stream:stream to="gmail.com" xml:lang="*" version="1.0" xmlns:stream="http:/

/etherx.jabber.org/streams" xmlns="jabber:client">

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:07 2011

   <stream:stream from="gmail.com" id="0DF99D93D5DB080C" version="1.0" xmlns:str

eam="http://etherx.jabber.org/streams" xmlns="jabber:client">

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:07 2011

   <stream:features>

     <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">

       <mechanism>

         PLAIN

       </mechanism>

       <mechanism>

         X-GOOGLE-TOKEN

       </mechanism>

     </mechanisms>

   </stream:features>

 

SEND >>>>>>>>>>>>>>>> : Sat Jan 08 00:40:07 2011

 

 

   <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">

     ## TEXT REMOVED ##

   </auth>

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:08 2011

   <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>

 

SEND >>>>>>>>>>>>>>>> : Sat Jan 08 00:40:08 2011

   <stream:stream to="gmail.com" xml:lang="*" version="1.0" xmlns:stream="http:/

/etherx.jabber.org/streams" xmlns="jabber:client">

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:08 2011

   <stream:stream from="gmail.com" id="669E9550694A496C" version="1.0" xmlns:str

eam="http://etherx.jabber.org/streams" xmlns="jabber:client">

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:08 2011

   <stream:features>

     <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>

     <session xmlns="urn:ietf:params:xml:ns:xmpp-session"/>

   </stream:features>

 

SEND >>>>>>>>>>>>>>>> : Sat Jan 08 00:40:08 2011

 

 

   <iq type="set" id="0">

     <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>

   </iq>

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:08 2011

   <iq id="0" type="result">

     <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">

       <jid>

         presenter168@gmail.com/1BD3500D

       </jid>

     </bind>

   </iq>

 

SEND >>>>>>>>>>>>>>>> : Sat Jan 08 00:40:08 2011

   <iq type="set" id="1">

     <session xmlns="urn:ietf:params:xml:ns:xmpp-session"/>

   </iq>

 

RECV <<<<<<<<<<<<<<<< : Sat Jan 08 00:40:08 2011

 

   <iq type="result" id="1"/>

STATE_OPEN

转载于:https://www.cnblogs.com/ningth/archive/2011/01/08/1930858.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值