1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/api-tests
Andy Green 1d954d52a3 sequencer: add second aux message arg
Since the messages are queued and then read in order from the event loop
thread, it's not generally safe to pass pointers to argument structs,
since there's no guarantee the lifetime of the thing sending the message
lasted until the sequencer read the message.

This puts pressure on the single void * argument-passed-as-value... this patch
adds a second void * argument-passed-as-value so it's more possible to put
what's needed directly in the argument.

It's also possible to alloc the argument on the heap and have the sequencer
callback free it after it has read it.
2019-08-08 09:45:09 +01:00
..
api-test-fts cc0: align dedication to CC0 FAQ recommended format 2019-05-02 09:29:01 +01:00
api-test-gencrypto gencrypto: aes: improve test key now openssl checks it 2019-07-14 15:46:47 -07:00
api-test-jose openssl: add threading apis needed for 1.0.2 and earlier 2019-08-02 09:47:23 +01:00
api-test-lws_sequencer sequencer: add second aux message arg 2019-08-08 09:45:09 +01:00
api-test-lws_struct-json cc0: align dedication to CC0 FAQ recommended format 2019-05-02 09:29:01 +01:00
api-test-lws_tokenize tokenize: LWS_TOKENIZE_F_NO_INTEGERS 2019-07-20 11:27:10 -07:00
api-test-lwsac cc0: align dedication to CC0 FAQ recommended format 2019-05-02 09:29:01 +01:00
api-test-smtp_client unit test sequencer 2019-06-29 21:08:36 +01:00
README.md smtp: make abstract 2019-05-04 08:28:31 +01:00

These are buildable test apps that run in CI to confirm correct api operation.

name tests
api-test-lwsac LWS Allocated Chunks api
api-test-lws_struct-json Selftests for lws_struct JSON serialization and deserialization
api-test-lws_tokenize Generic secure string tokenizer api
api-test-fts LWS Full-text Search api
api-test-gencrypto LWS Generic Crypto apis
api-test-jose LWS JOSE apis
api-test-smtp_client SMTP client for sending emails