Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
b116b2fa
Commit
b116b2fa
authored
Sep 06, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mg_poll_server doc corrected
parent
1388bb1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
API.md
docs/API.md
+3
-1
No files found.
docs/API.md
View file @
b116b2fa
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment