1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/http-server
Andy Green d3308df40f windows: pthreads
Add support for external pthreads lib on windows and some docs about how to do.

It can build with LWS_WITH_THREADPOOL and LWS_WITH_MINIMAL_EXAMPLES including the
pthreads-dependent ones without warnings or errors on windows platform as well with this.

pthreads_t can be anything, including a struct - not a pointer-to-a-struct
but the struct itself.  These can't be cast to a void * for printing as they can
on linux, where the base type is a pointer.

Let's fix all the usage of those to determine their own thread index in terms
of the meaning to the program rather than as a tid.
2020-04-07 14:05:21 +01:00
..
minimal-http-server lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-basicauth lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-cgi lws_spawn_piped: break out from cgi 2020-02-21 17:32:41 +00:00
minimal-http-server-custom-headers lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-deaddrop windows: clean LWS_WITH_MINIMAL_EXAMPLES warnings 2020-04-07 10:09:51 +01:00
minimal-http-server-dynamic lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-eventlib lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-eventlib-demos lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-eventlib-foreign minimal: rediscover event loop lib paths 2020-03-24 18:59:36 +00:00
minimal-http-server-eventlib-smp windows: pthreads 2020-04-07 14:05:21 +01:00
minimal-http-server-form-get lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-form-post lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-form-post-file windows: clean LWS_WITH_MINIMAL_EXAMPLES warnings 2020-04-07 10:09:51 +01:00
minimal-http-server-form-post-lwsac cleaning 2020-01-05 22:17:58 +00:00
minimal-http-server-fulltext-search lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-generic-sessions lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-h2-long-poll cleaning 2020-01-05 22:17:58 +00:00
minimal-http-server-mimetypes lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-multivhost lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-proxy cleaning 2020-01-05 22:17:58 +00:00
minimal-http-server-smp windows: pthreads 2020-04-07 14:05:21 +01:00
minimal-http-server-sse windows: pthreads 2020-04-07 14:05:21 +01:00
minimal-http-server-sse-ring windows: pthreads 2020-04-07 14:05:21 +01:00
minimal-http-server-tls lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-tls-80 lws logo: update minimal examples 2020-03-06 04:46:39 +00:00
minimal-http-server-tls-mem windows: clean LWS_WITH_MINIMAL_EXAMPLES warnings 2020-04-07 10:09:51 +01:00
README.md vhost info: add memory buffer cert support 2019-03-12 11:57:43 +08:00

Example Demonstrates
minimal-http-server-basicauth Shows how to protect a mount using a password file and basic auth
minimal-http-server-custom-headers Shows how to query custom headers that lws doesn't already know
minimal-http-server-deaddrop Shows how to use the deaddrop drag and drop file upload + sharing plugin
minimal-http-server-dynamic Serves both static and dynamically generated http content
minimal-http-server-eventlib-foreign Demonstrates integrating lws with a foreign event library
minimal-http-server-eventlib-demos Using the demo plugins with event libraries
minimal-http-server-eventlib Same as minimal-http-server but works with a supported event library
minimal-http-server-form-get Process a GET form
minimal-http-server-form-post-file Process a multipart POST form with file transfer
minimal-http-server-form-post Process a POST form (no file transfer)
minimal-http-server-fulltext-search Demonstrates using lws Fulltext Search
minimal-http-server-mimetypes Shows how to add support for additional mimetypes at runtime
minimal-http-server-multivhost Same as minimal-http-server but three different vhosts
minimal-http-server-proxy Reverse Proxy
minimal-http-server-smp Multiple service threads
minimal-http-server-sse-ring Server Side Events with ringbuffer and threaded event sources
minimal-http-server-sse Simple Server Side Events
minimal-http-server-tls-80 Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler, redirect to https on port 80
minimal-http-server-tls-mem Serves using TLS with the cert and key provided as memory buffers instead of files
minimal-http-server-tls Serves a directory over http/1 or http/2 with TLS (SSL), custom 404 handler
minimal-http-server Serves a directory over http/1, custom 404 handler