mongoose/docs/c-api/mqtt_server.h/mg_mqtt_next.md
Sergey Lyubka 12437fd7fe Refactor Mongoose documentation
PUBLISHED_FROM=e9a4e5c7b4a1d03b93a2a79e29de19e60e919929
2016-09-01 14:35:02 +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);

Iterates over all MQTT session connections. Example:

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