Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
mount-origin/ | 12-May-2024 | - | 147 | 140 | ||
CMakeLists.txt | D | 12-May-2024 | 2.4 KiB | 93 | 82 | |
README.md | D | 12-May-2024 | 985 | 34 | 23 | |
localhost-100y.cert | D | 12-May-2024 | 2.1 KiB | 35 | 34 | |
localhost-100y.key | D | 12-May-2024 | 3.2 KiB | 53 | 52 | |
minimal-http-server-eventlib-smp.c | D | 12-May-2024 | 4.4 KiB | 163 | 114 |
README.md
1# lws minimal http server eventlib 2 3WARNING: this is under development, it's not stable. 4 5This demonstrates a minimal http server that can use any of the event libraries 6 7Commandline option|Meaning 8---|--- 9-d <loglevel>|Debug verbosity in decimal, eg, -d15 10-t <threads>|Number of threads to use. 11--uv|Use the libuv event library (lws must have been configured with `-DLWS_WITH_LIBUV=1`) 12--event|Use the libevent library (lws must have been configured with `-DLWS_WITH_LIBEVENT=1`) 13--ev|Use the libev event library (lws must have been configured with `-DLWS_WITH_LIBEV=1`) 14 15## build 16 17lilbwebsockets must have been built with `LWS_MAX_SMP` greater than 1 to use 18multiple threads. 19 20``` 21 $ cmake . && make 22``` 23 24## usage 25 26``` 27 $ ./lws-minimal-http-server-eventlib-smp 28[2018/03/04 09:30:02:7986] USER: LWS minimal http server-eventlib | visit http://localhost:7681 29[2018/03/04 09:30:02:7986] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 on 30``` 31 32Visit http://localhost:7681 33 34