1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
Andy Green 6710279e21 client: use block parse and buflist
With http, the protocol doesn't indicate where the headers end and the
next transaction or body begin.  Until now, we handled that for client
header response parsing by reading from the tls buffer bytewise.

This modernizes the code to read in up to 256-byte chunks and parse
the chunks in one hit (the parse API is already set up for doing this
elsewhere).

Now we have a generic input buflist, adapt the parser loop to go through
that and arrange that any leftovers are placed on there.
2019-09-22 03:08:36 -07:00
..
abstract freertos: rename esp32 plat to freertos 2019-08-26 09:58:57 +01:00
core client: use block parse and buflist 2019-09-22 03:08:36 -07:00
core-net client: use block parse and buflist 2019-09-22 03:08:36 -07:00
event-libs clean: internally use LWS_WITH_CLIENT and _SERVER 2019-08-26 09:58:57 +01:00
jose private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
misc asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
plat detailed latency stats 2019-09-22 03:06:59 -07:00
roles client: use block parse and buflist 2019-09-22 03:08:36 -07:00
system/async-dns asynchronous dns for ipv4 and ipv6 2019-09-19 06:54:53 +01:00
tls client: improve redirect 2019-09-22 03:07:57 -07:00
README.md JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/tls Code supporting the various TLS libraries
libwebsockets.h Public API header for the whole of lws