Lines Matching +full:- +full:c
5 For example, a C/C++ application could use CivetWeb to enable a web service and configuration inter…
7 …-alone executable. It can deliver static files and offers built-in server side Lua, JavaScript and…
11 ------
18 …C++ where it means "inline" code which is technically not the same as static code. CivetWeb overlo…
25 - HTTP server API
26 - include/civetweb.h
27 - C implementation
28 - src/civetweb.c
29 - src/md5.inl (MD5 calculation)
30 - src/sha1.inl (SHA calculation)
31 - src/handle\_form.inl (HTML form handling functions)
32 - src/timer.inl (optional timer support)
33 - Optional: C++ wrapper
34 - include/CivetServer.h (C++ interface)
35 - src/CivetServer.cpp (C++ wrapper implementation)
36 - Optional: Third party components
37 - src/third\_party/* (third party components, mainly used for the standalone server)
38 - src/mod\_*.inl (modules to access third party components from civetweb)
41 …C++ wrapper uses the official C interface (civetweb.h) without adding any features to the server i…
48 - Stand-alone C server
49 - src/main.c
50 - Reference embedded C server
51 - examples/embedded\_c/embedded\_c.c
52 - Reference embedded C++ server
53 - examples/embedded\_cpp/embedded\_cpp.cpp
59 ------
63 ### C subsection
64 - Include the C interface ```civetweb.h```.
65 - Use `mg_start()` to start the server.
66 - Use *options* to select the port and document root among other things.
67 - Use *callbacks* to add your own hooks.
68 - Use `mg_set_request_handler()` to easily add your own request handlers.
69 - Use `mg_stop()` to stop the server.
71 ### C++
72 …- Note that CivetWeb is Clean C, and C++ interface ```CivetServer.h``` is only a wrapper layer aro…
73 Not all CivetWeb features available in C are also available in C++.
74 - Create CivetHandlers for each URI.
75 - Register the handlers with `CivetServer::addHandler()`
76 - `CivetServer` starts on construction and stops on destruction.
77 - Use constructor *options* to select the port and document root among other things.
78 - Use constructor *callbacks* to add your own hooks.
84 ------
95 …-DUSE_LUA), to build without CGI support set `#define NO_CGI` (-DNO_CGI). A list of feature define…
98 … replace an internal function in [civetweb.c](https://github.com/civetweb/civetweb/blob/master/src…
99 …oftware covered by the MIT license, you can feel free to just edit civetweb.c according to your ne…
100 …web.c](https://github.com/civetweb/civetweb/blob/master/src/civetweb.c). Interfaces and even names…
101 …plaining your use case, to discuss if this would be an appropriate solution - in general, other cu…
105 ------
111 - `-DLUA_COMPAT_ALL`
112 - `-DUSE_LUA`
113 - `-DUSE_LUA_SQLITE3`
114 - `-DUSE_LUA_FILE_SYSTEM`
118 - src/mod\_lua.inl
119 - src/third\_party/lua-5.2.4/src
120 + lapi.c
121 + lauxlib.c
122 + lbaselib.c
123 + lbitlib.c
124 + lcode.c
125 + lcorolib.c
126 + lctype.c
127 + ldblib.c
128 + ldebug.c
129 + ldo.c
130 + ldump.c
131 + lfunc.c
132 + lgc.c
133 + linit.c
134 + liolib.c
135 + llex.c
136 + lmathlib.c
137 + lmem.c
138 + loadlib.c
139 + lobject.c
140 + lopcodes.c
141 + loslib.c
142 + lparser.c
143 + lstate.c
144 + lstring.c
145 + lstrlib.c
146 + ltable.c
147 + ltablib.c
148 + ltm.c
149 + lundump.c
150 + lvm.c
151 + lzio.c
152 - src/third\_party/sqlite3.c
153 - src/third\_party/sqlite3.h
154 - src/third\_party/lsqlite3.c
155 - src/third\_party/lfs.c
156 - src/third\_party/lfs.h
162 ------
168 ------
174 - configuration options. Note that CivetWeb makes internal copies of
176 - SSL context, if any
177 - user-defined callbacks
178 - opened listening sockets
179 - a queue for accepted sockets
180 - mutexes and condition variables for inter-thread synchronization
189 you may need to initialize SSL before calling `mg_start()`, and set the pre-
208 ```C
228 to use hi-performance alternatives like `epoll()` or `kqueue()`. Worker
236 ------
239 ```C
258 /* Un-initialize the library */
264 ```C
273 "Content-Length: %lu\r\n"
274 "Content-Type: text/plain\r\n"