Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
58f214ea
Commit
58f214ea
authored
12 years ago
by
Andy Green
Browse files
Options
Downloads
Patches
Plain Diff
document revent clearing scheme
Signed-off-by:
Andy Green
<
andy.green@linaro.org
>
parent
b1a5e6c3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.coding
+7
-0
7 additions, 0 deletions
README.coding
changelog
+6
-0
6 additions, 0 deletions
changelog
with
13 additions
and
0 deletions
README.coding
+
7
−
0
View file @
58f214ea
...
@@ -156,6 +156,13 @@ LWS_CALLBACK_SET_MODE_POLL_FD and LWS_CALLBACK_CLEAR_MODE_POLL_FD
...
@@ -156,6 +156,13 @@ LWS_CALLBACK_SET_MODE_POLL_FD and LWS_CALLBACK_CLEAR_MODE_POLL_FD
appear in the callback for protocol 0 and allow interface code to
appear in the callback for protocol 0 and allow interface code to
manage socket descriptors in other poll loops.
manage socket descriptors in other poll loops.
You can pass all pollfds that need service to libwebsocket_service_fd(), even
if the socket or file does not belong to libwebsockets it is safe.
If libwebsocket handled it, it zeros the pollfd revents field before returning.
So you can let libwebsockets try and if pollfd->revents is nonzero on return,
you know it needs handling by your code.
Using with in c++ apps
Using with in c++ apps
----------------------
----------------------
...
...
This diff is collapsed.
Click to expand it.
changelog
+
6
−
0
View file @
58f214ea
...
@@ -14,6 +14,12 @@ User api additions
...
@@ -14,6 +14,12 @@ User api additions
added, replacing CIPHERS_LIST_STRING. NULL means use the ssl library
added, replacing CIPHERS_LIST_STRING. NULL means use the ssl library
default list of ciphers.
default list of ciphers.
- Not really an api addition, but libwebsocket_service_fd() will now zero
the revents field of the pollfd it was called with if it handled the
descriptor. So you can tell if it is a non-lws fd by checking revents
after the service call... if it's still nonzero, the descriptor
belongs to you and you need to take care of it.
User api changes
User api changes
----------------
----------------
...
...
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