mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
![]() 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. |
||
---|---|---|
.. | ||
api-test-fts | ||
api-test-gencrypto | ||
api-test-jose | ||
api-test-lws_sequencer | ||
api-test-lws_struct-json | ||
api-test-lws_tokenize | ||
api-test-lwsac | ||
api-test-smtp_client | ||
README.md |
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 |