mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 01:10:52 +08:00
29 lines
378 B
C++
29 lines
378 B
C++
#pragma once
|
|
|
|
#include "mqtt_message.hpp"
|
|
|
|
namespace acl {
|
|
|
|
class mqtt_disconnect : public mqtt_message {
|
|
public:
|
|
mqtt_disconnect(void);
|
|
~mqtt_disconnect(void);
|
|
|
|
protected:
|
|
// @override
|
|
bool to_string(string& out);
|
|
|
|
// @override
|
|
int update(const char*, int dlen) {
|
|
return dlen;
|
|
}
|
|
|
|
// @override
|
|
bool is_finished(void) const {
|
|
return true;
|
|
}
|
|
|
|
};
|
|
|
|
} // namespace acl
|