1.主要数据结构
 struct mosquitto(mosquitto_internal.h) 保存客户端连接的所有信息
 struct mosquitto_db(mosquitto_broker.h) 对所有内部数据的统一管理,保存所有客户端,订阅关系,可是为数据仓库
 struct _mosquitto_subhier(mosquitto_broker.h) 保存订阅树的所有节点,mosquitto中对订阅树采用孩子-兄弟链表法的方式存储
 struct _mosquitto_config(mosquitto_broker.h) 保存mosquitto的所有配置信息,程序启动时候将初始化该结构体,并从配置文件读取配置信息保存在该结构体中
 

更多推荐