
mosquitto
mosquitto原理,应用等
楼兰公子
这个作者很懒,什么都没留下…
展开
-
mysql_log.c
#include <signal.h>#include <stdio.h>#include <string.h>#ifndef WIN32# include <unistd.h>#else# include <process.h># define snprintf sprintf_s#endif#include <mosquitto.h>#include <mysql/mysql.h>#d.原创 2020-10-30 13:03:41 · 102 阅读 · 0 评论 -
mosquitto分析
mosquitto分析 核心数据结构 struct mosquitto(mosquitto_internal.h) 保存客户端连接的所有信息 struct mosquitto_db(mosquitto_broker.h) 对所有内部数据的统一管理,保存所有客户端,订阅关系,可是为数据仓库 struct _mosquitto_subhier(mosquitto_broker.h) 保存订阅树的所有节点,mosquitto中对订阅树采用孩子-兄弟链表法的方式存储 struct _mosquit...原创 2020-07-08 15:49:39 · 594 阅读 · 0 评论 -
mosquitto示例之tls-psk-bridge问题
C++ 代码#ifndef LIBMOSQUITTO_TLS_PSK_BRIDGE_HPP#define LIBMOSQUITTO_TLS_PSK_BRIDGE_HPP#include <errno.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <mosquitto.h>static i原创 2020-06-22 20:02:49 · 759 阅读 · 0 评论 -
示例之libmosquitto_single_test
#ifndef LIBMOSQUITTO_TEST_SINGLE_HPP#define LIBMOSQUITTO_TEST_SINGLE_HPP#include<stdio.h>#include<stdlib.h>#include"mosquitto.h"int test(){ int rc; struct mosquitto_message *pMsg; mosquitto_lib_init(); rc = mosquitto_sub.原创 2020-06-19 20:23:36 · 325 阅读 · 0 评论 -
示例之libmosquittto_callback_test
callabck源代码#ifndef LIBMOSQUITTTO_CALLBACK_TEST_HPP#define LIBMOSQUITTTO_CALLBACK_TEST_HPP#include<stdio.h>#include<stdlib.h>#include"mosquitto.h"int on_message(struct mosquitto* mosq,void *userData,const struct mosquitto_message *msg)原创 2020-06-19 20:16:33 · 243 阅读 · 0 评论 -
mosquitto概要分析---常用数据结构
1.主要数据结构struct mosquitto(mosquitto_internal.h) 保存客户端连接的所有信息struct mosquitto_db(mosquitto_broker.h) 对所有内部数据的统一管理,保存所有客户端,订阅关系,可是为数据仓库struct _mosquitto_subhier(mosquitto_broker.h) 保存订阅树的所有节点,mosquitto中对订阅树采用孩子-兄弟链表法的方式存储struct _mosquitto_config(mosqu...原创 2020-06-15 16:25:33 · 355 阅读 · 0 评论