1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/minimal-examples/ws-client
Andy Green d98101d1e3 plugins: generalize and provide public api
Move the common plugin scanning dir stuff to be based on lws_dir, which
already builds for windows.  Previously this was done via dirent for unix
and libuv for windows.

Reduce the dl plat stuff to just wrap instantiation and destruction of
dynlibs, establish common code in lib/misc/dir.c for plugin scanning
itself.

Migrate the libuv windows dl stuff to windows-plugins.c, so that he's
available even if later libuv loop support becomes and event lib plugin.

Remove the existing api exports scheme for plugins, just export a const struct
now which has a fixed header type but then whatever you want afterwards depending
on the class / purpose of the plugin.  Place a "class" string in the header so
there can be different kinds of plugins implying different types exported.

Make the plugin apis public and add support for filter by class string, and
per instantation / destruction callbacks so the subclassed header type can
do its thing for the plugin class.  The user provides a linked-list base
for his class of plugins, so he can manage them completely separately and
in user code / user export types.

Rip out some last hangers-on from generic sessions / tables.

This is all aimed at making the plugins support general enough so it can
provide event lib plugins later.
2020-08-31 16:51:37 +01:00
..
minimal-ws-client cmake: mark all the subprojects as explicitly C 2020-08-31 16:51:36 +01:00
minimal-ws-client-binance minimal-ws-client-binance 2020-08-31 16:51:37 +01:00
minimal-ws-client-echo plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
minimal-ws-client-ping cmake: mark all the subprojects as explicitly C 2020-08-31 16:51:36 +01:00
minimal-ws-client-pmd-bulk plugins: generalize and provide public api 2020-08-31 16:51:37 +01:00
minimal-ws-client-rx cmake: mark all the subprojects as explicitly C 2020-08-31 16:51:36 +01:00
minimal-ws-client-spam cmake: mark all the subprojects as explicitly C 2020-08-31 16:51:36 +01:00
minimal-ws-client-tx cmake: mark all the subprojects as explicitly C 2020-08-31 16:51:36 +01:00
README.md minimal examples: ws client demonstrating retry and backoff 2020-02-04 14:16:18 +00:00

name demonstrates
minimal-ws-client Simple client that connects to libwebsockets.org dumb increment protocol and demonstrates retry and backoff
minimal-ws-client-echo Simple client that connects to a ws server and echos anything the server sends
minimal-ws-client-ping Ws ping test client
minimal-ws-client-pmd-bulk Client that sends bulk multifragment data to the minimal-ws-server-pmd-bulk example
minimal-ws-client-rx Connects to the dumb-increment-protocol wss server at https://libwebsockets.org and demonstrates receiving ws data
minimal-ws-client-spam Spams ws connections in parallel to a server for stability testing
minimal-ws-client-tx Connects to the minimal-ws-broker example as a publisher, demonstrating sending ws data