#include <mqtt_connack.hpp>
mqtt message object for the MQTT_CONNACK type.
在文件 mqtt_connack.hpp 第 22 行定义.
◆ mqtt_connack() [1/2]
acl::mqtt_connack::mqtt_connack |
( |
void |
| ) |
|
constructor for creating MQTT_CONNACK mqtt message object.
- 参见
- mqtt_message
◆ mqtt_connack() [2/2]
acl::mqtt_connack::mqtt_connack |
( |
const mqtt_header & |
header | ) |
|
constructor for creating MQTT_CONNACK mqtt message object.
- 参见
- mqtt_message
◆ ~mqtt_connack()
acl::mqtt_connack::~mqtt_connack |
( |
void |
| ) |
|
◆ finished()
bool acl::mqtt_connack::finished |
( |
void |
| ) |
const |
|
inlineprotectedvirtual |
◆ get_connack_code()
unsigned char acl::mqtt_connack::get_connack_code |
( |
void |
| ) |
const |
|
inline |
get the connect resturn code
- 返回
- {unsigned char} defined as MQTT_CONNACK_XXX above.
在文件 mqtt_connack.hpp 第 64 行定义.
◆ get_session()
bool acl::mqtt_connack::get_session |
( |
void |
| ) |
const |
|
inline |
◆ set_connack_code()
mqtt_connack& acl::mqtt_connack::set_connack_code |
( |
unsigned char |
code | ) |
|
set the connect return code
- 参数
-
code | {unsigned char} defined as MQTT_CONNACK_XXX above. |
- 返回
- {mqtt_connack&}
◆ set_session()
set the session control for the connection
- 参数
-
- 返回
- {mqtt_connack&}
◆ to_string()
bool acl::mqtt_connack::to_string |
( |
string & |
out | ) |
|
|
protectedvirtual |
◆ update()
int acl::mqtt_connack::update |
( |
const char * |
data, |
|
|
int |
dlen |
|
) |
| |
|
protectedvirtual |
◆ update_header_var()
int acl::mqtt_connack::update_header_var |
( |
const char * |
data, |
|
|
int |
dlen |
|
) |
| |
(internal) update mqtt header data for parsing mqtt data.
- 参数
-
data | {const char*} the data to be parsed. |
dlen | {int} the length of data. |
- 返回
- {int} return the length of the left data.
该类的文档由以下文件生成: