Depend on v7.c properly

PUBLISHED_FROM=cf49d0d345e4a7607c535f9578b8ed4160f2fccd
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-07-22 14:31:13 +00:00
1 parent 27986213aa
commit 6a3d01ee6b
20 files changed
+66 -66

No files matched your search

+3 -3
View File
@@ -6,14 +6,14 @@ signature: |
void mg_broadcast(struct mg_mgr *, mg_event_handler_t func, void *, size_t);
---
Passes a message of a given length to all connections.
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, the event will be `MG_EV_POLL`, and a message will
be passed as the `ev_data` pointer. Maximum message size is capped
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.