From 866a7e2823cd5d3b9708bcb9694fb6dc3ff2ae4d Mon Sep 17 00:00:00 2001 From: Miguel Morales Date: Wed, 14 Aug 2013 12:38:32 -0400 Subject: [PATCH] Changing Embedding example to C file. --- UserManual.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UserManual.md b/UserManual.md index 90761605..cac1766a 100644 --- a/UserManual.md +++ b/UserManual.md @@ -401,12 +401,12 @@ Embedding Mongoose is easy. Copy [mongoose.c](https://github.com/valenok/mongoose/blob/master/mongoose.c) and [mongoose.h](https://github.com/valenok/mongoose/blob/master/mongoose.h) 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: $ ls - my_app.cpp mongoose.c mongoose.h - $ g++ my_app.cc mongoose.c -o my_app + my_app.c mongoose.c mongoose.h + $ gcc my_app.c mongoose.c -o my_app -ldl -pthread Somewhere in the application code, call `mg_start()` to start the server. Pass configuration options and event handlers to `mg_start()`.