【技术应用】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

posted @ 2011-01-08 19:19  宁#宁  阅读(1255)  评论(0编辑  收藏  举报