mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 01:29:00 +08:00
7bed7ff482
Comments in headers are changed a bit: removed adoc-specific stuff, markdown is used instead PUBLISHED_FROM=9242cce85cc52a47a197d377e7e23804721a6bb5
19 lines
411 B
Markdown
19 lines
411 B
Markdown
---
|
|
title: "mg_mqtt_next()"
|
|
decl_name: "mg_mqtt_next"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
struct mg_mqtt_session *mg_mqtt_next(struct mg_mqtt_broker *brk,
|
|
struct mg_mqtt_session *s);
|
|
---
|
|
|
|
Iterate over all mqtt sessions connections. Example:
|
|
|
|
```c
|
|
struct mg_mqtt_session *s;
|
|
for (s = mg_mqtt_next(brk, NULL); s != NULL; s = mg_mqtt_next(brk, s)) {
|
|
// Do something
|
|
}
|
|
```
|
|
|