mongoose/docs/c-api/mqtt-broker.h/mg_mqtt_next.md
Alexander Alashkin e406de7e00 Remove extra error message
PUBLISHED_FROM=8b7fcfc1bc32ff9ff38e2904ddb730c83bf9fae4
2016-07-25 16:36:18 +00:00

411 B

title decl_name symbol_kind signature
mg_mqtt_next() mg_mqtt_next func struct mg_mqtt_session *mg_mqtt_next(struct mg_mqtt_broker *brk, struct mg_mqtt_session *s);

Iterate over all mqtt sessions connections. Example:

struct mg_mqtt_session *s;
for (s = mg_mqtt_next(brk, NULL); s != NULL; s = mg_mqtt_next(brk, s)) {
  // Do something
}