mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Remove old docs, rename docs_new to docs
It would be probably good idea to also remove tools/docgen.py and asciidoc.mk, but asciidoc.mk is still mentioned under `cloud/doc`, which may contain some useful info which we'll need at least to review before removing. PUBLISHED_FROM=faf454d4c52a2f07ea8ac084cf0bd11a0c9c9b3b
This commit is contained in:
1 parent
f443c64341
commit
23122b327c
182 files changed
+3592
-263
No files matched your search
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: "mg_broadcast()"
|
||||
decl_name: "mg_broadcast"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
void mg_broadcast(struct mg_mgr *, mg_event_handler_t func, void *, size_t);
|
||||
---
|
||||
|
||||
Pass a message of a given length to all connections.
|
||||
|
||||
Must be called from a thread that does NOT call `mg_mgr_poll()`.
|
||||
Note that `mg_broadcast()` is the only function
|
||||
that can be, and must be, called from a different (non-IO) thread.
|
||||
|
||||
`func` callback function will be called by the IO thread for each
|
||||
connection. When called, event would be `MG_EV_POLL`, and message will
|
||||
be passed as `ev_data` pointer. Maximum message size is capped
|
||||
by `MG_CTL_MSG_MESSAGE_SIZE` which is set to 8192 bytes.
|
||||
|
||||
Reference in new issue
Block a user