client convert to new headers scheme eliminating mallocs 64/3064/1
authorAndy Green <andy.green@linaro.org>
Mon, 11 Feb 2013 05:04:45 +0000 (13:04 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:33 +0000 (13:01 -0800)
commitcd1b50ef65eaf4b54a3cc3c606ed1c03bdf3450d
treee9be528b135552550673c2301d9b469de6f0334c
parent862eec9b8d92fe2dfa188eeff5fe584ab0da235c
client convert to new headers scheme eliminating mallocs

This removes all the direct wsi members specific to clients,
most of them are moved to being fake headers in the next 3-layer
header scheme, c_port moves to being a member of the u.hdr
unionized struct.

It gets rid of a lot of fiddly mallocs and frees(), despite it
adds a small internal API to create the fake headers, actually
the patch deletes more than it adds...

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client-handshake.c
lib/client.c
lib/libwebsockets.c
lib/libwebsockets.h
lib/parsers.c
lib/private-libwebsockets.h