44

moquette源码分析之七--qos1和qos2消息的处理-xingyuntian的博客

 6 years ago
source link: http://blog.51cto.com/13579730/2094964
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
首先解释一下mqtt协议的session的概念,因为只有有了session才会存在消息质量保证一说如果清理会话(CleanSession)标志被设置为0,服务端必须基于当前会话(使用客户端标识符识别)的状态恢复与客户端的通信。如果没有与这个客户端标识符关联的会话,服务端必须创建一个新的会话。在连接断开之后,当连接断开后,客户端和服务端必须保存会话信息[MQTT-3.1.2-4]。当清理会话标志为0

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK