async_mqtt 9.0.1
Loading...
Searching...
No Matches
MQTT connection role (client, server or both)
Collaboration diagram for MQTT connection role (client, server or both):

Enumerations

enum class  async_mqtt::role { role::client = 0b01 , role::server = 0b10 , role::any = 0b11 }
 MQTT endpoint connection role. More...
 

Detailed Description

Enumeration Type Documentation

◆ role

enum class async_mqtt::role
strong

MQTT endpoint connection role.

Requirements

Enumerator
client 

as client. Can't send CONNACK, SUBACK, UNSUBACK, PINGRESP. Can send Other packets.

server 

as server. Can't send CONNECT, SUBSCRIBE, UNSUBSCRIBE, PINGREQ, DISCONNECT(only on v3.1.1). Can send Other packets.

any 

can send all packets. (no check)