Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
a0b43ae8
Commit
a0b43ae8
authored
Aug 14, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #218 from MikieMorales/patch-3
Changing Embedding example to C file.
parents
2055d41a
866a7e28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
UserManual.md
UserManual.md
+3
-3
No files found.
UserManual.md
View file @
a0b43ae8
...
@@ -401,12 +401,12 @@ Embedding Mongoose is easy. Copy
...
@@ -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.c
pp
mongoose.c mongoose.h
my_app.c mongoose.c mongoose.h
$ g
++ my_app.cc mongoose.c -o my_app
$ g
cc 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()`
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment