From b116b2fa82f753ad7b334b8f5b597915f2a2e2ce Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Sat, 6 Sep 2014 10:10:22 +0100 Subject: [PATCH] mg_poll_server doc corrected --- docs/API.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 1db34ed4d..1addecfb2 100644 --- a/docs/API.md +++ b/docs/API.md @@ -43,7 +43,7 @@ allowed to call `mg_set_option()` by the same thread that does `mg_poll_server()` (Mongoose thread) and change server configuration while it is serving, in between `mg_poll_server()` calls. - void mg_poll_server(struct mg_server *server, int milliseconds); + int mg_poll_server(struct mg_server *server, int milliseconds); Performs one iteration of IO loop by iterating over all active connections, performing `select()` syscall on all sockets with a timeout @@ -121,6 +121,8 @@ of the websocket frame which URI handler can examine. Note that to reply to the websocket client, `mg_websocket_write()` should be used. To reply to the plain HTTP client, `mg_write_data()` should be used. +Return value: number of active connections. + const char **mg_get_valid_option_names(void); -- GitLab