XMPP协议包文备注

openfire服务器 android客户端Liu 和pc端zhuaizc

用户离线通知

<presence id="o32WV-45" type="unavailable" from="shuaizc@liu/Spark 2.6.3" to="liuh@liu"/>

用户上线通知

<presence id="wp7so-6" from="shuaizc@liu/Spark 2.6.3" to="liuh@liu"><status>在线</status><priority>1</priority></presence>

接受到消息

<message id="wp7so-27" to="liuh@liu" from="shuaizc@liu/Spark 2.6.3" type="chat"><body>asdasd </body><thread>2u4hJk</thread><x xmlns="jabber:x:event"><offline/><composing/></x></message>
发送消息
<message id="Yjclv-10" to="zhoum@liu" from="liuh@liu/Smack" type="chat"><body>哈哈哈哈哈</body></message>
在线信息
<pre code_snippet_id="68967" snippet_file_name="blog_20131112_6" name="code" class="html"><span style="font-family: Arial, Helvetica, sans-serif;"> <presence id="eOrgc-6" from="admin@openfire/Spark 2.6.3" to="liuh@openfire"><status>在线</status><priority>1</priority></presence></span>
 
 

断开连接

</stream:stream>
admin 邀请liu进入123群

 <message from="123@conference.ay140528194541z" to="liuh@ay140528194541z"><x xmlns="http://jabber.org/protocol/muc#user"><invite from="admin@ay140528194541z"><reason>请把我加入会议中。</reason></invite></x><x xmlns="jabber:x:conference" jid="123@conference.ay140528194541z"/></message>

添加订阅liuh为好友

<presence id="2089K-64" to="liuh@ay140528194541z" type="subscribe"></presence>

收到admin加好友信息

07-03 11:42:19.726: D/SMACK(20951): 11:42:19 上午 RCV  (1113167544): <presence id="2089K-64" to="liuh@ay140528194541z" type="subscribe" from="admin@ay140528194541z"/>

接受admin的申请
07-03 11:42:19.726: D/SMACK(20951): 11:42:19 上午 SENT (1113167544): <presence id="916JW-4" to="admin@ay140528194541z" type="subscribed"></presence>


ping 包

07-03 11:35:10.598: D/SMACK(26117): 11:35:10 上午 RCV  (1113164104): <iq type="get" id="4-122" from="ay140528194541z" to="liuh@ay140528194541z/Smack"><ping xmlns="urn:xmpp:ping"/></iq>
07-03 11:35:10.608: D/SMACK(26117): 11:35:10 上午 SENT (1113164104): <iq id="4-122" to="ay140528194541z" from="liuh@ay140528194541z/Smack" type="error"><error code="501" type="CANCEL"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>



                
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值