Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
866a7e28
Commit
866a7e28
authored
11 years ago
by
Miguel Morales
Browse files
Options
Downloads
Patches
Plain Diff
Changing Embedding example to C file.
parent
2055d41a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UserManual.md
+3
-3
3 additions, 3 deletions
UserManual.md
with
3 additions
and
3 deletions
UserManual.md
+
3
−
3
View file @
866a7e28
...
...
@@ -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.c
pp
`
, 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.c
pp
mongoose.c mongoose.h
$ g
++
my_app.c
c
mongoose.c -o my_app
my_app.c mongoose.c mongoose.h
$ g
cc
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()`
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment