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_pingreq : public mqtt_message {
|
2021-03-04 17:47:27 +08:00
|
|
|
public:
|
|
|
|
mqtt_pingreq(void);
|
|
|
|
~mqtt_pingreq(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
|
|
|
|
bool is_finished(void) const {
|
|
|
|
return true;
|
|
|
|
}
|
2021-03-04 17:47:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace acl
|