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
3054952a
Commit
3054952a
authored
8 years ago
by
Sergey Lyubka
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add %T to the API ref
PUBLISHED_FROM=f6679ea960b3aa0bc9142515548835ee0f78af67
parent
3244df9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/build-options/disabling-flags.md
+3
-3
3 additions, 3 deletions
docs/build-options/disabling-flags.md
docs/build-options/intro.md
+3
-3
3 additions, 3 deletions
docs/build-options/intro.md
docs/build-options/tunables.md
+1
-1
1 addition, 1 deletion
docs/build-options/tunables.md
with
7 additions
and
7 deletions
docs/build-options/disabling-flags.md
+
3
−
3
View file @
3054952a
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
title
:
Disabling flags
title
:
Disabling flags
---
---
-
`MG_DISABLE_HTTP_WEBSOCKET`
disable HTTP + Web
s
ocket protocol support
-
`MG_DISABLE_HTTP_WEBSOCKET`
disable HTTP + Web
S
ocket protocol support
-
`MG_DISABLE_HTTP_DIGEST_AUTH`
disable HTTP Digest (MD5) authori
z
ation support
-
`MG_DISABLE_HTTP_DIGEST_AUTH`
disable HTTP Digest (MD5) authori
s
ation support
-
`MG_DISABLE_MQTT`
disable MQTT support
-
`MG_DISABLE_MQTT`
disable MQTT support
-
`MG_DISABLE_SHA1`
disable SHA1 support (used by Web
s
ocket)
-
`MG_DISABLE_SHA1`
disable SHA1 support (used by Web
S
ocket)
-
`MG_DISABLE_MD5`
disable MD5 support (used by HTTP auth)
-
`MG_DISABLE_MD5`
disable MD5 support (used by HTTP auth)
-
`MG_DISABLE_SOCKETPAIR`
disable
`mg_broadcast()`
API
-
`MG_DISABLE_SOCKETPAIR`
disable
`mg_broadcast()`
API
-
`MG_DISABLE_HTTP_KEEP_ALIVE`
useful for embedded systems to save resources
-
`MG_DISABLE_HTTP_KEEP_ALIVE`
useful for embedded systems to save resources
This diff is collapsed.
Click to expand it.
docs/build-options/intro.md
+
3
−
3
View file @
3054952a
...
@@ -9,12 +9,12 @@ items:
...
@@ -9,12 +9,12 @@ items:
Mongoose source code ships in a single .c file that contains functionality
Mongoose source code ships in a single .c file that contains functionality
for all supported protocols (modules). Modules can be disabled at compile
for all supported protocols (modules). Modules can be disabled at compile
time which reduces executable size. That can be done by setting preprocessor
time which reduces
the
executable
's
size. That can be done by setting preprocessor
flags. Also, some preprocessor flags can be used to tune internal Mongoose
flags. Also, some preprocessor flags can be used to tune internal Mongoose
parameters.
parameters.
To set a preprocessor flag during compile time, use
`-D <PREPROCESSOR_FLAG>`
To set a preprocessor flag during compile time, use
the
`-D <PREPROCESSOR_FLAG>`
compiler option. For example, to disable both MQTT and C
O
AP,
compiler option. For example, to disable both MQTT and C
o
AP,
compile the application
`my_app.c`
like this (assumed UNIX system):
compile the application
`my_app.c`
like this (assumed UNIX system):
```
```
...
...
This diff is collapsed.
Click to expand it.
docs/build-options/tunables.md
+
1
−
1
View file @
3054952a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
title
:
Tunables
title
:
Tunables
---
---
-
`MG_MALLOC`
,
`MG_CALLOC`
,
`MG_REALLOC`
,
`MG_FREE`
allow
to
use custom
-
`MG_MALLOC`
,
`MG_CALLOC`
,
`MG_REALLOC`
,
`MG_FREE`
allow
you to a
use custom
memory allocator, e.g.
`-DMG_MALLOC=my_malloc`
memory allocator, e.g.
`-DMG_MALLOC=my_malloc`
-
`MG_USE_READ_WRITE`
when set replaces calls to
`recv`
with
`read`
and
`send`
with
`write`
,
-
`MG_USE_READ_WRITE`
when set replaces calls to
`recv`
with
`read`
and
`send`
with
`write`
,
thus enabling to add any kind of file descriptor (files, serial devices) to an event manager.
thus enabling to add any kind of file descriptor (files, serial devices) to an event manager.
...
...
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