Skip to content
Snippets Groups Projects
Commit eaa376ff authored by mulander's avatar mulander Committed by Andy Green
Browse files

READMEs: CHANGE callback replaces SET/CLEAR_MODE

LWS_CALLBACK_SET_MODE_POLL_FD and LWS_CALLBACK_CLEAR_MODE_POLL_FD no longer exist.

Updating the documentation to reflect that and point to LWS_CALLBACK_CHANGE_MODE_POLL_FD.
parent 365eb7f2
No related branches found
No related tags found
No related merge requests found
...@@ -220,10 +220,9 @@ external polling array. That's needed if **libwebsockets** will ...@@ -220,10 +220,9 @@ external polling array. That's needed if **libwebsockets** will
cooperate with an existing poll array maintained by another cooperate with an existing poll array maintained by another
server. server.
Four callbacks `LWS_CALLBACK_ADD_POLL_FD`, `LWS_CALLBACK_DEL_POLL_FD`, Three callbacks `LWS_CALLBACK_ADD_POLL_FD`, `LWS_CALLBACK_DEL_POLL_FD`
`LWS_CALLBACK_SET_MODE_POLL_FD` and `LWS_CALLBACK_CLEAR_MODE_POLL_FD` and `LWS_CALLBACK_CHANGE_MODE_POLL_FD` appear in the callback for protocol 0
appear in the callback for protocol 0 and allow interface code to 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 `lws_service_fd()`, even You can pass all pollfds that need service to `lws_service_fd()`, even
if the socket or file does not belong to **libwebsockets** it is safe. if the socket or file does not belong to **libwebsockets** it is safe.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment