Xmpp初始连接交互内容
来源:互联网 发布:mac登qq后如何远程控制 编辑:程序博客网 时间:2024/06/05 19:42
备注一下####client下线<presencetype="unavailable"><status>Logged out</status></presence>####client发起连接<?xml version="1.0"?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="xumatomacbook-pro.local" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">####server相应并回复验证的features<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='xumatomacbook-pro.local' id='675c6847-c13d-4710-9844-d9339e4df087' version='1.0' xml:lang='en'><stream:features><verxmlns="urn:xmpp:features:rosterver"/><starttlsxmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanismsxmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>####client启动tls验证<starttlsxmlns="urn:ietf:params:xml:ns:xmpp-tls"/>####server表示支持,可以继续<proceedxmlns="urn:ietf:params:xml:ns:xmpp-tls"/>####tls验证结束,重新开始<?xml version="1.0"?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="xumatomacbook-pro.local" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">####server响应,并返回下一步验证支持的features,sasl<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='xumatomacbook-pro.local' id='675c6847-c13d-4710-9844-d9339e4df087' version='1.0' xml:lang='en'><stream:features><verxmlns="urn:xmpp:features:rosterver"/><mechanismsxmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>####client开始sasl验证<authxmlns="urn:ietf:params:xml:ns:xmpp-sasl"mechanism="PLAIN">AGd1YW5mZWkAZ3VhbmZlaQ==</auth>####server表示成功了<successxmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>####client重新开始<?xml version="1.0"?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="xumatomacbook-pro.local" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">####server响应并返回支持的features<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='xumatomacbook-pro.local' id='675c6847-c13d-4710-9844-d9339e4df087' version='1.0' xml:lang='en'><stream:features><verxmlns="urn:xmpp:features:rosterver"/><sessionxmlns="urn:ietf:params:xml:ns:xmpp-session"/><register xmlns="http://jabber.org/features/iq-register"/><bindxmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>####client请求resource bind <iqtype="set"id="bind_1"><bindxmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Psi+</resource></bind></iq>####server判断并返回结果<iq xmlns="jabber:client" type="result" id="bind_1" to="guanfei@xumatomacbook-pro.local/Psi+"><bindxmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>guanfei@xumatomacbook-pro.local/Psi+</jid></bind></iq>####client发起session<iqtype="set"id="ab46a"><sessionxmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>####server端响应<iq type="result" id="ab46a" to="guanfei@xumatomacbook-pro.local/Psi+"/>####client端请求roster列表<iqtype="get"id="ab47a"><queryxmlns="jabber:iq:roster"/></iq>####server端返回<iq type="result" id="ab47a" to="guanfei@xumatomacbook-pro.local/Psi+"><queryxmlns="jabber:iq:roster"><item subscription="both" name="ohno" jid="guanfei1@xumatomacbook-pro.local"/></query></iq>####client广播自己的出席信息<presence><priority>50</priority><c xmlns="http://jabber.org/protocol/caps" node="http://psi-dev.googlecode.com/caps" ver="0.16" ext="ca cs e-time ep-notify-2 html last-act mr sxe whiteboard"/> </presence>####client请求自己的个人信息<iqtype="get"id="ab49a"><queryxmlns="jabber:iq:privacy"/></iq>####client请求bookmark<iqtype="get"id="ab4aa"><queryxmlns="jabber:iq:private"><storagexmlns="storage:bookmarks"/></query></iq>####client请求个人vcard<iq type="get" to="guanfei@xumatomacbook-pro.local" id="ab4ba"> <vCardxmlns="vcard-temp"/></iq>####client请求disco列表<iqtype="get"to="xumatomacbook-pro.local"id="ab4ca"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>####server广播出席信息<presence from="guanfei@xumatomacbook-pro.local/Psi+" to="guanfei@xumatomacbook-pro.local"><priority>50</priority><c xmlns="http://jabber.org/protocol/caps" node="http://psi-dev.googlecode.com/caps" ver="0.16" ext="ca cs e-time ep-notify-2 html last-act mr sxe whiteboard"/> </presence>####server返回个人信息项列表<iq type="result" id="ab49a" to="guanfei@xumatomacbook-pro.local/Psi+"><queryxmlns="jabber:iq:privacy"><listname="blocked"/><defaultname="blocked"/><activename="blocked"/></query></iq>####client请求block项内容<iqtype="get"id="ab4da"><queryxmlns="jabber:iq:privacy"><listname="blocked"/></query></iq>####server返回bookmark信息<iq type="result" id="ab4aa" to="guanfei@xumatomacbook-pro.local/Psi+"><queryxmlns="jabber:iq:private"><storagexmlns="storage:bookmarks"/></query></iq>####server返回vcard信息<iq from="guanfei@xumatomacbook-pro.local" type="result" to="guanfei@xumatomacbook-pro.local/Psi+" id="ab4ba"><vCardxmlns="vcard-temp"><FN>guanfei</FN><NICKNAME>guanfei</NICKNAME></vCard></iq>####server返回disco列表<iq from="xumatomacbook-pro.local" type="result" to="guanfei@xumatomacbook-pro.local/Psi+" id="ab4ca"> <query xmlns="http://jabber.org/protocol/disco#info"><identitycategory="server"type="im"name="Tigase ver. 0.0.0-0"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="http://jabber.org/protocol/disco#items"/><featurevar="msgoffline"/><feature var="http://jabber.org/protocol/stats"/><feature var="http://jabber.org/protocol/commands"/><featurevar="jabber:iq:version"/><featurevar="jabber:iq:roster"/><featurevar="jabber:iq:roster-dynamic"/><featurevar="vcard-temp"/><featurevar="urn:ietf:params:xml:ns:xmpp-sasl"/><featurevar="urn:xmpp:ping"/><feature var="http://jabber.org/protocol/pubsub"/><feature var="http://jabber.org/protocol/pubsub#owner"/><feature var="http://jabber.org/protocol/pubsub#publish"/><identitycategory="pubsub"type="pep"/><featurevar="urn:ietf:params:xml:ns:xmpp-session"/><feature var="http://jabber.org/protocol/amp"/><featurevar="msgoffline"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="http://jabber.org/protocol/disco#items"/><featurevar="jabber:iq:privacy"/><featurevar="urn:ietf:params:xml:ns:xmpp-bind"/><featurevar="jabber:iq:private"/><featurevar="jabber:iq:auth"/></query></iq><presence from="guanfei1@xumatomacbook-pro.local/Psi+" to="guanfei@xumatomacbook-pro.local"><priority>50</priority><c xmlns="http://jabber.org/protocol/caps" node="http://psi-dev.googlecode.com/caps" ver="0.16" ext="ca cs e-time ep-notify-2 html last-act mr sxe whiteboard"/> </presence><iq type="result" id="ab4da" to="guanfei@xumatomacbook-pro.local/Psi+"><queryxmlns="jabber:iq:privacy"><listname="blocked"><itemaction="allow"order="100"/></list></query></iq>
0 0
- Xmpp初始连接交互内容
- Xmpp初始连接交互内容
- XMPP协议内容
- XMPP协议IM客户端IMPanda初始版本
- XMPP连接人人网
- XMPP如何连接服务器
- xmpp 连接监听
- xmpp客户端连接处理
- gloox连接xmpp服务器
- XMPP 连接登录过程
- XMPP协议内容和格式
- XMPP协议内容和格式
- 嵌入式 初始p2p交互,UDP打洞
- nodejs初始连接数据库文件设置
- 使用web端连接xmpp
- XMPP通讯开发-服务器连接
- XMPP学习10-连接方法
- 2008交互网站内容
- python初学-01数据类型
- 巫启贤《太傻》背后的故事
- 快速排序算法
- wamp环境 安装memcached具体操作
- oracle存储过程调试
- Xmpp初始连接交互内容
- 向左无缝滚动
- Android的Location功能
- Java注释@interface的用法【转】
- MarkLine
- java使用默认线程池踩过的坑(二)
- Linux 下如何处理包含空格和特殊字符的文件名
- Git 和 Svn的区别
- map循环取值 keyset与entryset区别