-
- Downloads
decouple-service-from-fd-array-index.patch
This patch removes the relationship between position in the
pollfd[] array and any meaning about the type of socket.
It also refactors the service loop so there is a per-fd
function that detects the mode of the connection and services
it accordingly.
The context wsi * array is removed and a hashtable introduced
allowing fast wsi lookup from just the fd that it is
associated with
Signed-off-by:
Andy Green <andy@warmcat.com>
Showing
- lib/client-handshake.c 2 additions, 4 deletionslib/client-handshake.c
- lib/libwebsockets.c 423 additions, 264 deletionslib/libwebsockets.c
- lib/parsers.c 2 additions, 0 deletionslib/parsers.c
- lib/private-libwebsockets.h 31 additions, 7 deletionslib/private-libwebsockets.h
- libwebsockets-api-doc.html 18 additions, 0 deletionslibwebsockets-api-doc.html
This diff is collapsed.
Please register or sign in to comment