1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib
Andy Green 85dc0883a2 ss: handle rx and tx return values properly
You can disconnect the stream by returning -1 from tx().  You can
give up your chance to send anything by returning 1 from tx().
Returning 0 sends `*len` amount of the provided buffer.

Returning <0 from rx() also disconnects the stream.
2020-05-04 14:36:39 +01:00
..
abstract cleaning 2020-01-05 22:17:58 +00:00
core strexp: reset out offset each time 2020-04-30 20:32:30 +01:00
core-net logs: allow giving log bitfields from cmake to force build or exclusion 2020-04-23 06:36:54 +01:00
event-libs ev: check for IOURING 2020-03-01 08:14:44 +00:00
jose jose: copy typ into jose object without testing for JWT 2020-03-04 11:00:04 +00:00
misc logs: allow giving log bitfields from cmake to force build or exclusion 2020-04-23 06:36:54 +01:00
plat iOS: detect and avoid net/route.h 2020-04-23 06:22:00 +01:00
roles mqtt: some toolchains object to typedef 2020-04-27 19:46:13 +01:00
secure-streams ss: handle rx and tx return values properly 2020-05-04 14:36:39 +01:00
system dhcpclient: Fix unused-variable error in release 2020-04-23 20:04:01 +01:00
tls BoringSSL: provide X509_VERYFY_PARAM_Set1_host length 2020-04-30 05:23:12 +01:00
README.md cleaning 2020-01-05 22:17:58 +00: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/core-net Core lws code that applies only if networking enabled
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/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries