Home
last modified time | relevance | path

Searched refs:conn_flags (Results 1 – 5 of 5) sorted by relevance

/third_party/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt.c122 c->conn_flags = LMQCFT_CLEAN_START; in lws_create_client_mqtt_object()
124 c->conn_flags |= LMQCFT_CLIENT_ID_NOFREE; in lws_create_client_mqtt_object()
126 c->conn_flags |= LMQCFT_USERNAME_NOFREE; in lws_create_client_mqtt_object()
128 c->conn_flags |= LMQCFT_PASSWORD_NOFREE; in lws_create_client_mqtt_object()
130 if (!(c->conn_flags & LMQCFT_CLIENT_ID_NOFREE)) in lws_create_client_mqtt_object()
142 c->conn_flags |= LMQCFT_WILL_FLAG; in lws_create_client_mqtt_object()
149 …c->conn_flags = (uint16_t)(unsigned int)(c->conn_flags | ((cp->will_param.qos << 3) & LMQCFT_WILL_… in lws_create_client_mqtt_object()
150 c->conn_flags |= (uint16_t)((!!cp->will_param.retain) * LMQCFT_WILL_RETAIN); in lws_create_client_mqtt_object()
158 c->conn_flags |= LMQCFT_USERNAME; in lws_create_client_mqtt_object()
159 if (!(c->conn_flags & LMQCFT_USERNAME_NOFREE)) in lws_create_client_mqtt_object()
[all …]
Dclient-mqtt-handshake.c58 if (c->conn_flags & LMQCFT_USERNAME && c->username) { in lws_mqtt_client_send_connect()
60 if (c->conn_flags & LMQCFT_PASSWORD) in lws_mqtt_client_send_connect()
63 if (c->conn_flags & LMQCFT_WILL_FLAG && c->will.topic) { in lws_mqtt_client_send_connect()
80 *p++ = (uint8_t)c->conn_flags; in lws_mqtt_client_send_connect()
99 if (!(c->conn_flags & LMQCFT_CLEAN_START)) { in lws_mqtt_client_send_connect()
107 if (c->conn_flags & LMQCFT_WILL_FLAG) { in lws_mqtt_client_send_connect()
128 if (c->conn_flags & LMQCFT_USERNAME) { in lws_mqtt_client_send_connect()
143 if (c->conn_flags & LMQCFT_PASSWORD) { in lws_mqtt_client_send_connect()
155 } else if (c->conn_flags & LMQCFT_PASSWORD) { in lws_mqtt_client_send_connect()
/third_party/curl/tests/server/
Dmqttd.c536 unsigned char conn_flags; in mqttit() local
578 conn_flags = buffer[7]; in mqttit()
581 if(usr_flag == (unsigned char)(conn_flags & usr_flag)) { in mqttit()
588 if(passwd_flag == (char)(conn_flags & passwd_flag)) { in mqttit()
/third_party/libwebsockets/lib/roles/mqtt/
Dprivate-lib-roles-mqtt.h349 uint16_t conn_flags; member
Dmqtt.c965 if ((c->conn_flags & LMQCFT_CLEAN_START) && in _lws_mqtt_rx_parser()