2021-03-04 17:47:27 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "mqtt_message.hpp"
|
|
|
|
|
|
|
|
namespace acl {
|
|
|
|
|
2021-03-07 12:45:22 +08:00
|
|
|
class ACL_CPP_API mqtt_disconnect : public mqtt_message {
|
2021-03-04 17:47:27 +08:00
|
|
|
public:
|
|
|
|
mqtt_disconnect(void);
|
2021-03-08 15:03:32 +08:00
|
|
|
mqtt_disconnect(const mqtt_header& header);
|
2021-03-04 17:47:27 +08:00
|
|
|
~mqtt_disconnect(void);
|
|
|
|
|
2021-03-05 14:30:21 +08:00
|
|
|
protected:
|
|
|
|
// @override
|
2021-03-04 17:47:27 +08:00
|
|
|
bool to_string(string& out);
|
2021-03-05 14:30:21 +08:00
|
|
|
|
|
|
|
// @override
|
|
|
|
int update(const char*, int dlen) {
|
|
|
|
return dlen;
|
|
|
|
}
|
|
|
|
|
|
|
|
// @override
|
2021-03-10 17:21:29 +08:00
|
|
|
bool finished(void) const {
|
2021-03-05 14:30:21 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-03-04 17:47:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace acl
|