acl
3.5.3.0
mqtt_disconnect.hpp
浏览该文件的文档.
1
#pragma once
2
3
#include "
mqtt_message.hpp
"
4
5
namespace
acl
{
6
7
/**
8
* mqtt message object for the MQTT_DISCONNECT type.
9
*/
10
class
ACL_CPP_API
mqtt_disconnect
:
public
mqtt_message
{
11
public
:
12
/**
13
* constructor for creating MQTT_DISCONNECT mqtt message object.
14
* @see mqtt_message
15
*/
16
mqtt_disconnect
(
void
);
17
18
/**
19
* constructor for creating MQTT_DISCONNECT mqtt message object.
20
* @see mqtt_message
21
*/
22
mqtt_disconnect
(
const
mqtt_header
& header);
23
24
~
mqtt_disconnect
(
void
);
25
26
protected
:
27
// @override
28
bool
to_string(
string
& out);
29
30
// @override
31
int
update
(
const
char
*,
int
dlen) {
32
return
dlen;
33
}
34
35
// @override
36
bool
finished
(
void
)
const
{
37
return
true
;
38
}
39
};
40
41
}
// namespace acl
acl::mqtt_disconnect::finished
bool finished(void) const
Definition:
mqtt_disconnect.hpp:36
acl
Definition:
acl_cpp_init.hpp:4
acl::mqtt_message
Definition:
mqtt_message.hpp:14
acl::mqtt_disconnect
Definition:
mqtt_disconnect.hpp:10
acl::mqtt_disconnect::update
int update(const char *, int dlen)
Definition:
mqtt_disconnect.hpp:31
acl::mqtt_header
Definition:
mqtt_header.hpp:71
mqtt_message.hpp
ACL_CPP_API
#define ACL_CPP_API
Definition:
acl_cpp_define.hpp:16
include
acl_cpp
mqtt
mqtt_disconnect.hpp
生成于 2021年 九月 10日 星期五 11:14:44 , 为 acl使用
1.8.15