XMPP协议指南

来源:互联网 发布:知乎2.7.2 编辑:程序博客网 时间:2024/06/04 00:55

XMPP : The Extensible Messaging and Presence Protocol 中文全称:可扩展通讯和表示协议 简介:可扩展通讯和表示协议 (XMPP) 可用于服务类实时通讯、表示和需求响应服务中的XML数据元流式传输。XMPP以Jabber协议为基础,而Jabber是即时通讯中常用的开放式协议。



一.   XMPPFramework几个常用到的扩展。

协议列表:

协议

协议简介

XEP-0009

在两个XMPP实体间传输XML-RPC编码请求和响应

XEP-0006

使能与网络上某个XMPP实体间的通信

XEP-0045

多人聊天相关协议

XEP-0054

名片格式的标准文档  http://wiki.jabbercn.org/XEP-0054

XEP-0060

提供通用公共订阅功能

XEP-0065

两个XMPP用户之间建立一个带外流,主要用于文件传输

XEP-0082

日期和时间信息的标准化表示

XEP-0084

用于交换用户头像,一个小的和自然人用户相关的图像或图标. 

该协议定义了头像元数据和图像数据本身的承载格式.

 承载格式典型地使用定义于XEP-0163的 XMPP发布-订阅个人事件脚本 

协议来传输

XEP-0085

聊天对话中通知用户状态

XEP-0100

表述了XMPP客户端与提供传统的IM服务的代理网关之间交换的最佳实践

XEP-0115

广播和动态发现客户端、设备、或一般实体能力。

XEP-0136

为服务端备份和检索XMPP消息定义机制和偏好设置

XEP-0153

用于交换用户头像

XEP-0184

消息送达回执协议

XEP-0199

XMPP ping 协议

XEP-0202

用于交换实体间的本地时间信息

XEP-0203

用于延迟发送

XEP-0224

引起另一个用户注意的协议



基本的jabber客户端必须实现以下标准协议(XEP-0211)
1、RFC3920 Core http://tools.ietf.org/html/rfc3920
2、RFC3921 Instant Messaging and Presence http://tools.ietf.org/html/rfc3921
3、XEP-030 Service Discovery http://www.xmpp.org/extensions/xep-0030.html
4、XEP-0115 Entity Capabilities http://www.xmpp.org/extensions/xep-0115.html

基本的jabber服务器必须实现以下标准协议(XEP-0212)
1、RFC3920 Core http://tools.ietf.org/html/rfc3920
2、RFC3921 Instant Messaging and Presence http://tools.ietf.org/html/rfc3921
3、XEP-030 Service Discovery http://www.xmpp.org/extensions/xep-0030.html

一、注册
XEP-0077 In-Band Registration http://www.xmpp.org/extensions/xep-0077.html
二、登录
XEP-0020 Software Version http://www.xmpp.org/extensions/xep-0092.html
三、好友列表
XEP-0083 Nested Roster Groups http://www.xmpp.org/extensions/xep-0083.html
1、获取好友列表
2、存储好友列表
XEP-0049 Private XML Storage http://www.xmpp.org/extensions/xep-0049.html
3、备注好友信息
XEP-0145 Annotations http://www.xmpp.org/extensions/xep-0145.html
4、存储书签
XEP-0048 Bookmark Storage http://www.xmpp.org/extensions/xep-0048.html
5、好友头像
XEP-0008 IQ-Based Avatars http://www.xmpp.org/extensions/xep-0008.html
XEP-0084 User Avatar http://www.xmpp.org/extensions/xep-0084.html
XEP-0054 vcard-temp http://www.xmpp.org/extensions/xep-0054.html
四、用户状态
RFC-3921 Subscription States http://www.ietf.org/rfc/rfc3921.txt
五、文本消息
1、在线消息
2、离线消息
XEP-0013 Flexible Offline Message Retrieval http://www.xmpp.org/extensions/xep-0013.html
XEP-0160 Best Practices for Handling Offline Messages http://www.xmpp.org/extensions/xep-0160.html
XEP-0203 Delayed Delivery http://www.xmpp.org/extensions/xep-0203.html
3、聊天状态通知
XEP-0085 Chat State Notifications http://www.xmpp.org/extensions/xep-0085.html
六、群组聊天
1、XEP-0045 Multi-User Chat http://www.xmpp.org/extensions/xep-0045.html
七、文件传输
1、XEP-0095 Stream Initiation http://www.xmpp.org/extensions/xep-0095.html
2、XEP-0096 File Transfer http://www.xmpp.org/extensions/xep-0096.html
3、XEP-0065 SOCKS5 Bytestreams http://www.xmpp.org/extensions/xep-0065.html
4、XEP-0215 STUN Server Discovery for Jingle http://www.xmpp.org/extensions/xep-0215.html
5、RFC-3489 STUN http://tools.ietf.org/html/rfc3489

八、音视频会议
1、XEP-0166 Jingle http://www.xmpp.org/extensions/xep-0166.html#negotiation
2、XEP-0167 Jingle Audio via RTP http://www.xmpp.org/extensions/xep-0167.html
3、XEP-0176 Jingle ICE Transport http://www.xmpp.org/extensions/xep-0176.html
4、XEP-0180 Jingle Video via RTP http://www.xmpp.org/extensions/xep-0180.html#negotiation
5、XEP-0215 STUN Server Discovery for Jingle http://www.xmpp.org/extensions/xep-0215.html
6、RFC-3489 STUN http://tools.ietf.org/html/rfc3489

九、用户查询
XEP-0055 Jabber Search http://www.xmpp.org/extensions/xep-0055.html

十、用户保活 (peakflys增加)
XEP-0199 Ping http://xmpp.org/extensions/xep-0199.html

整体:
一、协议数据交互
XEP-0004 Data Forms http://www.xmpp.org/extensions/xep-0004.html
二、jabber-RPC
XEP-0009 Jabber-RPC http://www.xmpp.org/extensions/xep-0009.html
三、功能协商
XEP-0020 Feature Negotiation http://www.xmpp.org/extensions/xep-0020.html
四、服务发现
XEP-0030 Service Discovery http://www.xmpp.org/extensions/xep-0030.html
五、会话建立
XEP-0116 Encrypted Session Negotiation http://www.xmpp.org/extensions/xep-0116.html
XEP-0155 Stanza Session Negotiation http://www.xmpp.org/extensions/xep-0155.html
XEP-0201 Best Practices for Message Threads http://www.xmpp.org/extensions/xep-0201.html

0 0
原创粉丝点击