MQTT CONNACK packet (v3.1.1)
More...
#include <v3_1_1_connack.hpp>
MQTT CONNACK packet (v3.1.1)
Only MQTT broker(sever) can send this packet.
See http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718033
Thread Safety
- Distinct objects: Safe
- Shared objects: Unsafe
Requirements
◆ connack_packet()
async_mqtt::v3_1_1::connack_packet::connack_packet |
( |
bool | session_present, |
|
|
connect_return_code | return_code ) |
|
explicit |
◆ code()
Get connect_return_code.
- Returns
- connect_return_code
◆ const_buffer_sequence()
std::vector< as::const_buffer > async_mqtt::v3_1_1::connack_packet::const_buffer_sequence |
( |
| ) |
const |
Create const buffer sequence. it is for boost asio APIs.
- Returns
- const buffer sequence
◆ num_of_const_buffer_sequence()
static std::size_t async_mqtt::v3_1_1::connack_packet::num_of_const_buffer_sequence |
( |
| ) |
|
|
inlinestatic |
Get number of element of const_buffer_sequence.
- Returns
- number of element of const_buffer_sequence
◆ session_present()
bool async_mqtt::v3_1_1::connack_packet::session_present |
( |
| ) |
const |
Get session_present.
- Returns
- session_present
◆ size()
std::size_t async_mqtt::v3_1_1::connack_packet::size |
( |
| ) |
const |
Get packet size.
- Returns
- packet size
◆ type()
Get MQTT control packet type.
- Returns
- control packet type
◆ operator<()
less than operator
- Parameters
-
lhs | compare target |
rhs | compare target |
- Returns
- true if the lhs less than the rhs, otherwise false.
Requirements
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & | o, |
|
|
connack_packet const & | v ) |
|
related |
stream output operator
- Parameters
-
- Returns
- output stream
Requirements
◆ operator==()
equal operator
- Parameters
-
lhs | compare target |
rhs | compare target |
- Returns
- true if the lhs equal to the rhs, otherwise false.
Requirements
The documentation for this class was generated from the following file: