1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/secure-streams
Andy Green c6c7ab2b44 event libs: default to building as dynamically loaded plugins
Event lib support as it has been isn't scaling well, at the low level
libevent and libev headers have a namespace conflict so they can't
both be built into the same image, and at the distro level, binding
all the event libs to libwebsockets.so makes a bloaty situation for
packaging, lws will drag in all the event libs every time.

This patch implements the plan discussed here

https://github.com/warmcat/libwebsockets/issues/1980

and refactors the event lib support so they are built into isolated
plugins and bound at runtime according to what the application says
it wants to use.  The event lib plugins can be packaged individually
so that only the needed sets of support are installed (perhaps none
of them if the user code is OK with the default poll() loop).  And
dependent user code can mark the specific event loop plugin package
as required so pieces are added as needed.

The eventlib-foreign example is also refactored to build the selected
lib support isolated.

A readme is added detailing the changes and how to use them.

https://libwebsockets.org/git/libwebsockets/tree/READMEs/README.event-libs.md
2020-08-31 16:51:37 +01:00
..
minimal-secure-streams sspc: fix intree build for sspc examples and increase post example body 2020-08-13 16:48:16 +01:00
minimal-secure-streams-alexa sspc: fix intree build for sspc examples and increase post example body 2020-08-13 16:48:16 +01:00
minimal-secure-streams-avs sspc: fix intree build for sspc examples and increase post example body 2020-08-13 16:48:16 +01:00
minimal-secure-streams-client-tx cmake: provide LIBWEBSOCKETS_DEP_LIBS in CONFIG 2020-06-16 19:45:35 +01:00
minimal-secure-streams-metadata sspc: fix intree build for sspc examples and increase post example body 2020-08-13 16:48:16 +01:00
minimal-secure-streams-policy2c ss: server: h1, h2, ws basic support 2020-07-27 12:05:24 +01:00
minimal-secure-streams-post event libs: default to building as dynamically loaded plugins 2020-08-31 16:51:37 +01:00
minimal-secure-streams-proxy lws_smd: system message distribution 2020-06-27 07:57:22 +01:00
minimal-secure-streams-seq cmake: provide LIBWEBSOCKETS_DEP_LIBS in CONFIG 2020-06-16 19:45:35 +01:00
minimal-secure-streams-server event libs: default to building as dynamically loaded plugins 2020-08-31 16:51:37 +01:00
minimal-secure-streams-server-raw lws_smd: take care about build with disabled 2020-08-16 05:35:56 +01:00
minimal-secure-streams-smd sspc: fix intree build for sspc examples and increase post example body 2020-08-13 16:48:16 +01:00
minimal-secure-streams-staticpolicy ss: static policy: dynamic vhost instantiation 2020-07-21 12:43:32 +01:00
README.md client: secure streams 2020-03-04 12:17:49 +00:00

Secure Streams

Secure Streams is a client API that strictly decouples the policy for connections from the payloads. The user code only deals with the stream type name and payloads, a policy database set at lws_context creation time decides all policy about the connection, including the endpoint, tls CA, and even the wire protocol.

name demonstrates
minimal-secure-streams Minimal secure streams client / proxy example
minimal-secure-streams-tx Proxy used for client-tx test below
minimal-secure-streams-client-tx Secure streams client showing tx and rx