mg_poll_server doc corrected

This commit is contained in:
Sergey Lyubka 2014-09-06 10:10:22 +01:00
parent 1388bb1db4
commit b116b2fa82

View File

@ -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 `mg_poll_server()` (Mongoose thread) and change server configuration while it
is serving, in between `mg_poll_server()` calls. 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 Performs one iteration of IO loop by iterating over all
active connections, performing `select()` syscall on all sockets with a timeout 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. reply to the websocket client, `mg_websocket_write()` should be used.
To reply to the plain HTTP client, `mg_write_data()` 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); const char **mg_get_valid_option_names(void);