acl
3.5.3.0
|
#include <mqtt_ack.hpp>
Public 成员函数 | |
mqtt_ack (mqtt_type_t type) | |
mqtt_ack (const mqtt_header &header) | |
virtual | ~mqtt_ack (void) |
void | set_pkt_id (unsigned short id) |
unsigned short | get_pkt_id (void) const |
int | update_header_var (const char *data, int dlen) |
Public 成员函数 继承自 acl::mqtt_message | |
mqtt_message (mqtt_type_t type) | |
mqtt_message (const mqtt_header &header) | |
virtual | ~mqtt_message (void) |
mqtt_header & | get_header (void) |
const mqtt_header & | get_header (void) const |
Protected 成员函数 | |
bool | to_string (string &out) |
int | update (const char *data, int dlen) |
bool | finished (void) const |
Protected 成员函数 继承自 acl::mqtt_message | |
void | pack_add (unsigned char ch, string &out) |
void | pack_add (unsigned short n, string &out) |
void | pack_add (const string &s, string &out) |
bool | unpack_short (const char *data, size_t len, unsigned short &out) |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 acl::mqtt_message | |
static mqtt_message * | create_message (const mqtt_header &header) |
Protected 属性 继承自 acl::mqtt_message | |
mqtt_header | header_ |
the base class for acking some mqtt message, used by some mqtt message type.
在文件 mqtt_ack.hpp 第 10 行定义.
acl::mqtt_ack::mqtt_ack | ( | mqtt_type_t | type | ) |
usually used when build a ack mqtt message.
type | {mqtt_type_t} |
acl::mqtt_ack::mqtt_ack | ( | const mqtt_header & | header | ) |
usually used when parsing a ack mqtt messsage.
header | {const mqtt_header&} will be copied internal. |
|
virtual |
|
inlineprotectedvirtual |
|
inline |
get the mqtt message's id
在文件 mqtt_ack.hpp 第 36 行定义.
void acl::mqtt_ack::set_pkt_id | ( | unsigned short | id | ) |
set the mqtt message's id.
id | {unsigned short} should > 0 && <= 65535. |
|
protectedvirtual |
实现了 acl::mqtt_message.
|
protectedvirtual |
实现了 acl::mqtt_message.
int acl::mqtt_ack::update_header_var | ( | const char * | data, |
int | dlen | ||
) |