| 75 | mqtt_header::~mqtt_header() {} |
| 76 | |
| 77 | void mqtt_header::reset() { |
| 78 | status_ = MQTT_STAT_HDR_TYPE; |
| 79 | finished_ = false; |
| 80 | type_ = MQTT_RESERVED_MIN; |
| 81 | hflags_ = 0; |
| 82 | dlen_ = 0; |
| 83 | hlen_ = 0; |
| 84 | } |
| 85 | |
| 86 | mqtt_header& mqtt_header::set_type(mqtt_type_t type) { |
| 87 | if (type > MQTT_RESERVED_MIN && type < MQTT_RESERVED_MAX) { |
no outgoing calls
no test coverage detected