mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-19 16:13:07 +08:00
mg_poll_server doc corrected
This commit is contained in:
parent
1388bb1db4
commit
b116b2fa82
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user