This is a dependency of our upcoming web-based material debugger. This
CL also includes `tnt/CMakeLists.txt`, which builds a static lib in a
minimal configuration that enables WebSocket support. The entire library
is built from only 4 files:
${PUBLIC_HDR_DIR}/CivetServer.h
${PUBLIC_HDR_DIR}/civetweb.h
${SRC_DIR}/civetweb.c
${SRC_DIR}/CivetServer.cpp
977 B
977 B
Civetweb API Reference
mg_exit_library( );
Parameters
none
Return Value
| Type | Description |
|---|---|
unsigned |
0 is returned or error |
Description
The function mg_exit_library() should be called from an application program, when the library should be unloaded.
It must be called only from one thread (it is not guaranteed to be thread safe).
Only use mg_exit_library( ); when you used mg_init_library( feature ); before.
The library init and exit functions are new in version 1.9 (as dummy implementation) and effective only from version 1.10.
For compatibility reasons, other functions (such as mg_start();) will initialize the required features as well,
but they will no longer do a de-initialization, leaving a memory leak when the library is unloaded.