mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
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.
This commit is contained in:
parent
bd3d8d9de0
commit
b3b6bcdf64
1 changed files with 3 additions and 4 deletions
|
@ -389,10 +389,9 @@ external polling array. That's needed if **libwebsockets** will
|
|||
cooperate with an existing poll array maintained by another
|
||||
server.
|
||||
|
||||
Four callbacks `LWS_CALLBACK_ADD_POLL_FD`, `LWS_CALLBACK_DEL_POLL_FD`,
|
||||
`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
|
||||
manage socket descriptors in other poll loops.
|
||||
Three callbacks `LWS_CALLBACK_ADD_POLL_FD`, `LWS_CALLBACK_DEL_POLL_FD`
|
||||
and `LWS_CALLBACK_CHANGE_MODE_POLL_FD` appear in the callback for protocol 0
|
||||
and allow interface code to manage socket descriptors in other poll loops.
|
||||
|
||||
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.
|
||||
|
|
Loading…
Add table
Reference in a new issue