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
2896965c
Commit
2896965c
authored
10 years ago
by
Sergey Lyubka
Browse files
Options
Downloads
Patches
Plain Diff
Fixed link to examples
parent
8e91e3a3
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
docs/Embed.md
+4
-12
4 additions, 12 deletions
docs/Embed.md
with
4 additions
and
12 deletions
docs/Embed.md
+
4
−
12
View file @
2896965c
...
...
@@ -50,7 +50,7 @@ to `mg_create_server()` function. Here is the example event handler function:
}
Event handler is called by Mongoose with
`struct mg_connection *`
pointer and an event number.
`struct mg_connection *conn`
pointer and an event number.
`struct mg_connection *conn`
has all information about the request: HTTP headers, POST or websocket
data buffer, etcetera.
`enum mg_event ev`
tells which exactly event is sent.
For each event, an event handler returns a value which tells Mongoose how
...
...
@@ -123,17 +123,9 @@ http://127.0.0.1:8080/hello will say hello, and here's the code:
## Example code
Mongoose source code contains a well-commented example code, listed below:
*
[
hello.c
](
https://github.com/cesanta/mongoose/blob/master/examples/hello.c
)
a minimalistic hello world example
*
[
post.c
](
https://github.com/cesanta/mongoose/blob/master/examples/post.c
)
shows how to handle form input
*
[
upload.c
](
https://github.com/cesanta/mongoose/blob/master/examples/post.c
)
shows how to upload files
*
[
websocket.c
](
https://github.com/cesanta/mongoose/blob/master/examples/websocket.c
)
demonstrates websocket usage
*
[
auth.c
](
https://github.com/cesanta/mongoose/blob/master/examples/auth.c
)
demonstrates API-controlled Digest authorization
*
[
mjpg.c
](
https://github.com/cesanta/mongoose/blob/master/examples/mjpg.c
)
demonstrates MJPEG streaming implementation
Mongoose source code contains number of examples, located in the
[
examples
](
https://github.com/cesanta/mongoose/blob/master/examples/
)
directory.
To build any example, go to the respective directory and run
`make`
.
## Compilation flags
...
...
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