1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
libwebsockets/test-apps
Andy Green dcaa0013b4 lecp: add CBOR stream parser LECP like JSON LEJP
This provides very memory-efficient CBOR stream parsing
and writing.

The parser  converts pieces of CBOR into callbacks that define
the structure and collate string and blobs into buffer chunks
for extensible and easy access.

It is fragementation-safe and does not need all the CBOR in
the same place at one time, chunks of CBOR are parsed and
discarded as provided.

It does not allocate and just needs a few hundred bytes of
stack for even huge CBOR objects.  Huge strings and blobs
are handled without needing memory to hold them atomically.

Includes ./minimal-examples/api-tests/api-test-lecp that
unit tests it against 82 official example CBORs and
26 additional test vectors from COSE (just checking the CBOR
parsing).

The writing apis allow printf style semantics with a variety
of CBOR-aware %-formats.  The apis write into a context that
manages output buffer usage, if the output buffer fills,
then the apis return with an AGAIN code that lets you issue
and reset the output buffer and repeat the api all to issue
more output.  The subsequent calls can occur much later or
from a different function context, so this is perfect for
WRITEABLE-mediated output from the network parts of lws.

See ./READMEs/README.cbor-lecp.md
2021-08-21 17:44:40 +01:00
..
android align private LWS_NO_EXTENSIONS to be same as public LWS_WITHOUT_EXTENSIONS 2018-04-06 10:38:03 +08:00
private clean up top level of project 2017-09-27 08:24:05 +08:00
1.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
2.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
3.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
4.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
5.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
6.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
7.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
8.png minimal client: add different paths to multi 2018-06-04 07:14:49 +08:00
candide-uncompressed.zip zip-fops: test-server: also install candide-uncompressed example 2020-12-01 17:29:00 +00:00
candide.zip clean up top level of project 2017-09-27 08:24:05 +08:00
CMakeLists.txt lecp: add CBOR stream parser LECP like JSON LEJP 2021-08-21 17:44:40 +01:00
favicon.ico clean up top level of project 2017-09-27 08:24:05 +08:00
http2.png wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00
leaf.jpg clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets-test-server.service clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets.org-logo.png clean up top level of project 2017-09-27 08:24:05 +08:00
libwebsockets.org-logo.svg lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
lws-cgi-test.sh http2: make usable 2017-10-16 17:13:49 +08:00
lws-common.js clean: codacy 2020-01-14 10:06:26 +00:00
lws-ssh-test-keys Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
lws-ssh-test-keys.pub Plugins: add ssh-base ssh server plugin 2017-10-16 16:59:57 +08:00
test-client.c Wextra 2021-07-04 10:29:54 +01:00
test-lecp.c lecp: add CBOR stream parser LECP like JSON LEJP 2021-08-21 17:44:40 +01:00
test-lejp.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
test-server.c Wextra 2021-07-04 10:29:54 +01:00
test-sshd.c ssh-demo fix 2021-03-25 08:40:52 +00:00
test.css test-app: upgrade test.html to have separate css and js for CSP 2018-09-11 18:27:59 +08:00
test.html minimal examples: update for CSP best practices 2018-11-21 17:03:29 +08:00
test.js codacy: minor fixes 2018-10-13 08:16:27 +08:00
wss-over-h2.png wss-over-h2: show feedback in test page if active 2018-04-06 10:38:03 +08:00