4 ms·
Architecturally this uses threads, a master listener and some number of worker threads. You will add a couple calls to your program to initialize the web server
by jws 9y ago
Architecturally this uses threads, a master listener and some number of worker threads. You will add a couple calls to your program to initialize the web server. The workers use synchronous I/O. You can easily add server side support for Lua or JavaScript from which you can expose and manipulate your program’s state, to the extent you can use threads in C without tearing your leg off.
It looks much nicer than anything I’ve hand rolled in the past to add web management to various servers and daemons.