1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/roles/ws
Andy Green 4ae3ef51c1 ss: improve callback return consistency
Formalize the LWSSSSRET_ enums into a type "lws_ss_state_return_t"
returned by the rx, tx and state callbacks, and some private helpers
lws_ss_backoff() and lws_ss_event_helper().

Remove LWSSSSRET_SS_HANDLE_DESTROYED concept... the two helpers that could
have destroyed the ss and returned that, now return LWSSSSRET_DESTROY_ME
to the caller to perform or pass up to their caller instead.

Handle helper returns in all the ss protocols and update the rx / tx
calls to have their returns from rx / tx / event helper and ss backoff
all handled by unified code.
2020-08-31 16:51:37 +01:00
..
ext fakewsi: replace with smaller substructure 2020-07-20 06:28:52 +01:00
client-parser-ws.c fakewsi: replace with smaller substructure 2020-07-20 06:28:52 +01:00
client-ws.c fakewsi: replace with smaller substructure 2020-07-20 06:28:52 +01:00
CMakeLists.txt cmakelist: Augean Stables refactor 2020-05-27 08:40:12 +01:00
ops-ws.c plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
private-lib-roles-ws.h role structs to const 2020-01-15 06:31:19 +00:00
server-ws.c ss: improve callback return consistency 2020-08-31 16:51:37 +01:00