decouple-service-from-fd-array-index.patch
authorAndy Green <andy@warmcat.com>
Sat, 12 Feb 2011 11:57:43 +0000 (11:57 +0000)
committerAndy Green <andy.green@linaro.org>
Sat, 12 Feb 2011 11:57:43 +0000 (11:57 +0000)
commit0d33833764aadee6154cc88c02af0682b825ff22
treed6449feab1878fa3091078917533ce0d95f71db4
parent44eee688ac9e15d924be90e85efb9bd26d02c482
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>
lib/client-handshake.c
lib/libwebsockets.c
lib/parsers.c
lib/private-libwebsockets.h
libwebsockets-api-doc.html