mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 00:40:55 +08:00
41 lines
671 B
C++
41 lines
671 B
C++
#pragma once
|
|
|
|
#include "mqtt_message.hpp"
|
|
|
|
namespace acl {
|
|
|
|
/**
|
|
* mqtt message object for MQTT_PINGRESP type.
|
|
*/
|
|
class ACL_CPP_API mqtt_pingresp : public mqtt_message {
|
|
public:
|
|
/**
|
|
* constructor for creating MQTT_PINGRESP mqtt message object.
|
|
* @see mqtt_message
|
|
*/
|
|
mqtt_pingresp(void);
|
|
|
|
/**
|
|
* constructor for creating MQTT_PINGRESP mqtt message object.
|
|
* @see mqtt_message
|
|
*/
|
|
mqtt_pingresp(const mqtt_header& header);
|
|
|
|
~mqtt_pingresp(void);
|
|
|
|
protected:
|
|
// @override
|
|
bool to_string(string& out);
|
|
|
|
// @override
|
|
int update(const char*, int dlen) {
|
|
return dlen;
|
|
}
|
|
// @override
|
|
bool finished(void) const {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
} // namespace acl
|