mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Changing Embedding example to C file.
This commit is contained in:
1 parent
2055d41a9f
commit
866a7e2823
1 file changed
+3
-3
+3
-3
@@ -401,12 +401,12 @@ Embedding Mongoose is easy. Copy
|
|||||||
[mongoose.c](https://github.com/valenok/mongoose/blob/master/mongoose.c) and
|
[mongoose.c](https://github.com/valenok/mongoose/blob/master/mongoose.c) and
|
||||||
[mongoose.h](https://github.com/valenok/mongoose/blob/master/mongoose.h)
|
[mongoose.h](https://github.com/valenok/mongoose/blob/master/mongoose.h)
|
||||||
to your application's source tree and include them in the build. For
|
to your application's source tree and include them in the build. For
|
||||||
example, your application's code lives in C++ file `my_app.cpp`, then on UNIX
|
example, your application's code lives in C file `my_app.c`, then on UNIX
|
||||||
this command embeds Mongoose:
|
this command embeds Mongoose:
|
||||||
|
|
||||||
$ ls
|
$ ls
|
||||||
my_app.cpp mongoose.c mongoose.h
|
my_app.c mongoose.c mongoose.h
|
||||||
$ g++ my_app.cc mongoose.c -o my_app
|
$ gcc my_app.c mongoose.c -o my_app -ldl -pthread
|
||||||
|
|
||||||
Somewhere in the application code, call `mg_start()` to start the server.
|
Somewhere in the application code, call `mg_start()` to start the server.
|
||||||
Pass configuration options and event handlers to `mg_start()`.
|
Pass configuration options and event handlers to `mg_start()`.
|
||||||
|
|||||||
Reference in new issue
Block a user