连接服务器:

 

SENT: <stream:stream to="jabber.cn" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" >
RECV: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' id='43FEAEE5' xmlns='jabber:client' from='jabber.cn' version='1.0'>
RECV: <stream:features><register xmlns='http://jabber.org/features/iq-register'/><auth xmlns='http://jabber.org/features/iq-auth'/></stream:features>

 

登录(身份验证):

 

SENT: <iq ><username>renziyi</username><resource>Exodus</resource><digest>2ee43612345655d3279a45227ede2969c7</digest></query></iq>
RECV: <iq id='jcl_104' type='result'/>

 

下载好友名单:

 

SENT: <iq /></iq>

RECV: <iq id='jcl_105' type='result' from='renziyi@jabber.cn/Exodus'><query xmlns='jabber:iq:roster'><item jid='renzy@jabber.cn' name='renzy' subscription='to'><group>Friends</group></item></query></iq>

 

更改自己状态为上线:
SENT: <presence><c node="http://exodus.jabberstudio.org/caps" ver="0.9.1.0" xmlns="http://jabber.org/protocol/caps"/><status>Available</status><priority>1</priority></presence>

相关文章:

  • 2022-02-06
  • 2021-09-14
  • 2021-12-19
  • 2021-11-30
  • 2021-09-24
  • 2022-01-23
  • 2021-10-20
  • 2021-06-09
猜你喜欢
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2021-06-08
相关资源
相似解决方案