mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 08:50:53 +08:00
28 lines
368 B
C++
28 lines
368 B
C++
#pragma once
|
|
|
|
#include "mqtt_message.hpp"
|
|
|
|
namespace acl {
|
|
|
|
class mqtt_pingreq : public mqtt_message {
|
|
public:
|
|
mqtt_pingreq(void);
|
|
~mqtt_pingreq(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
|