Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
7d918854
Commit
7d918854
authored
3 years ago
by
Sergey Lyubka
Browse files
Options
Downloads
Patches
Plain Diff
Update docs
parent
0de83157
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/README.md
+6
-1
6 additions, 1 deletion
docs/README.md
with
6 additions
and
1 deletion
docs/README.md
+
6
−
1
View file @
7d918854
...
@@ -100,7 +100,12 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
...
@@ -100,7 +100,12 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
described for each event. Protocol-specific events usually have
`ev_data`
described for each event. Protocol-specific events usually have
`ev_data`
pointing to structures that hold protocol-specific information
pointing to structures that hold protocol-specific information
-
`void *fn_data`
- a user-defined pointer for the connection, which is a
-
`void *fn_data`
- a user-defined pointer for the connection, which is a
placeholder for application-specific data
placeholder for application-specific data. This
`fn_data`
pointer is set
during the
`*_listen()`
or
`*_connect()`
call, and it is stored in the
`c->fn_data`
. Listening connections copy the value of
`c->fn_data`
to the
newly accepted connection, so all accepted connections initially share the
same
`fn_data`
pointer. It is fine to update/replace that pointer for
any connection at any time by setting
`c->fn_data = new_value;`
## Events
## Events
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment