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
b5dd54a4
Commit
b5dd54a4
authored
Mar 01, 2017
by
Alexander Alashkin
Committed by
Cesanta Bot
Mar 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doc typos
PUBLISHED_FROM=1bdacf793b35ebe70d0a3a9d64260dd2bd135c73
parent
f7c0a2ee
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
17 deletions
+17
-17
mg_coap_free_options.md
docs/c-api/coap.h/mg_coap_free_options.md
+1
-1
mg_dns_encode_record.md
docs/c-api/dns.h/mg_dns_encode_record.md
+1
-1
mg_http_send_redirect.md
docs/c-api/http_server.h/mg_http_send_redirect.md
+1
-1
mg_send_response_line.md
docs/c-api/http_server.h/mg_send_response_line.md
+1
-1
mg_bind_opt.md
docs/c-api/net.h/mg_bind_opt.md
+1
-1
mg_check_ip_acl.md
docs/c-api/net.h/mg_check_ip_acl.md
+1
-1
ssi.md
docs/http/ssi.md
+1
-1
mongoose.c
mongoose.c
+3
-3
mongoose.h
mongoose.h
+7
-7
No files found.
docs/c-api/coap.h/mg_coap_free_options.md
View file @
b5dd54a4
...
...
@@ -7,5 +7,5 @@ signature: |
---
Frees the memory allocated for options.
If the cm param
a
ter doesn't contain any option it does nothing.
If the cm param
e
ter doesn't contain any option it does nothing.
docs/c-api/dns.h/mg_dns_encode_record.md
View file @
b5dd54a4
...
...
@@ -21,5 +21,5 @@ This function doesn't update the `name` and `rdata` pointers in the `rr`
struct because they might be invalidated as soon as the IO buffer grows
again.
Returns the number of bytes appened or -1 in case of error.
Returns the number of bytes appen
d
ed or -1 in case of error.
docs/c-api/http_server.h/mg_http_send_redirect.md
View file @
b5dd54a4
...
...
@@ -12,7 +12,7 @@ Sends a redirect response.
`status_code`
should be either 301 or 302 and
`location`
point to the
new location.
If
`extra_headers`
is not empty, then
`extra_headers`
are also sent
after the reponse line.
`extra_headers`
must NOT end end with new line.
after the re
s
ponse line.
`extra_headers`
must NOT end end with new line.
Example:
...
...
docs/c-api/http_server.h/mg_send_response_line.md
View file @
b5dd54a4
...
...
@@ -9,7 +9,7 @@ signature: |
Sends the response status line.
If
`extra_headers`
is not NULL, then
`extra_headers`
are also sent
after the reponse line.
`extra_headers`
must NOT end end with new line.
after the re
s
ponse line.
`extra_headers`
must NOT end end with new line.
Example:
mg_send_response_line(nc, 200, "Access-Control-Allow-Origin: *");
...
...
docs/c-api/net.h/mg_bind_opt.md
View file @
b5dd54a4
...
...
@@ -15,7 +15,7 @@ the same as for the `mg_connect()` call, where `HOST` part is optional.
`address`
can be just a port number, e.g.
`:8000`
. To bind to a specific
interface, an IP address can be specified, e.g.
`1.2.3.4:8000`
. By default,
a TCP connection is created. To create UDP connection, prepend
`udp://`
prefix, e.g.
`udp://:8000`
. To summarize,
`address`
paramer has following
prefix, e.g.
`udp://:8000`
. To summarize,
`address`
parame
te
r has following
format:
`[PROTO://][IP_ADDRESS]:PORT`
, where
`PROTO`
could be
`tcp`
or
`udp`
.
...
...
docs/c-api/net.h/mg_check_ip_acl.md
View file @
b5dd54a4
...
...
@@ -18,7 +18,7 @@ Subnet masks may vary from 0 to 32, inclusive. The default setting
is to allow all access. On each request the full list is traversed,
and the last match wins. Example:
`-0.0.0.0/0,+192.168/16`
- deny all acc
c
esses, only allow 192.168/16 subnet
`-0.0.0.0/0,+192.168/16`
- deny all accesses, only allow 192.168/16 subnet
To learn more about subnet masks, see this
link:https://en.wikipedia.org/wiki/Subnetwork
[
Wikipedia page on Subnetwork
]
.
...
...
docs/http/ssi.md
View file @
b5dd54a4
...
...
@@ -35,7 +35,7 @@ The exec directive is used to execute a command on a server,
and show command's output. Example:
`<!--#exec "ls -l" -->`
The call directive is a way to invoke a C handler from the HTML page.
On each occurence of
`<!--#call PARAMS -->`
directive,
On each occur
r
ence of
`<!--#call PARAMS -->`
directive,
Mongoose calls a registered event handler with
`MG_EV_SSI_CALL`
event.
Event parameter will point to the
`PARAMS`
string.
An event handler can output any text, for example by calling
...
...
mongoose.c
View file @
b5dd54a4
...
...
@@ -2342,7 +2342,7 @@ MG_INTERNAL struct mg_connection *mg_create_connection(
* Address format: [PROTO://][HOST]:PORT
*
* HOST could be IPv4/IPv6 address or a host name.
* `host` is a destination buffer to hold parsed HOST part. Shoud be at least
* `host` is a destination buffer to hold parsed HOST part. Shou
l
d be at least
* MG_MAX_HOST_LEN bytes long.
* `proto` is a returned socket type, either SOCK_STREAM or SOCK_DGRAM
*
...
...
@@ -13395,7 +13395,7 @@ time_t mg_sl_if_poll(struct mg_iface *iface, int timeout_ms) {
(
SL_FD_ISSET
(
nc
->
sock
,
&
write_set
)
?
_MG_F_FD_CAN_WRITE
:
0
)
|
(
SL_FD_ISSET
(
nc
->
sock
,
&
err_set
)
?
_MG_F_FD_ERROR
:
0
);
}
/* SimpleLink does not report UDP sockets as writ
e
able. */
/* SimpleLink does not report UDP sockets as writable. */
if
(
nc
->
flags
&
MG_F_UDP
&&
nc
->
send_mbuf
.
len
>
0
)
{
fd_flags
|=
_MG_F_FD_CAN_WRITE
;
}
...
...
@@ -13418,7 +13418,7 @@ time_t mg_sl_if_poll(struct mg_iface *iface, int timeout_ms) {
void
mg_sl_if_get_conn_addr
(
struct
mg_connection
*
nc
,
int
remote
,
union
socket_address
*
sa
)
{
/* SimpleLink does not provide a way to get socket's peer address after
* accept or connect. Address hould have been preserved in the connection,
* accept or connect. Address
s
hould have been preserved in the connection,
* so we do our best here by using it. */
if
(
remote
)
memcpy
(
sa
,
&
nc
->
sa
,
sizeof
(
*
sa
));
}
...
...
mongoose.h
View file @
b5dd54a4
...
...
@@ -3235,7 +3235,7 @@ typedef void (*mg_event_handler_t)(struct mg_connection *nc, int ev,
#define MG_EV_POLL 0
/* Sent to each connection on each mg_mgr_poll() call */
#define MG_EV_ACCEPT 1
/* New connection accepted. union socket_address * */
#define MG_EV_CONNECT 2
/* connect() succeeded or failed. int * */
#define MG_EV_RECV 3
/* Data has be
n
n received. int *num_bytes */
#define MG_EV_RECV 3
/* Data has be
e
n received. int *num_bytes */
#define MG_EV_SEND 4
/* Data has been written to a socket. int *num_bytes */
#define MG_EV_CLOSE 5
/* Connection is closed. NULL */
#define MG_EV_TIMER 6
/* now >= conn->ev_timer_time. double * */
...
...
@@ -3495,7 +3495,7 @@ struct mg_connection *mg_bind(struct mg_mgr *, const char *,
* `address` can be just a port number, e.g. `:8000`. To bind to a specific
* interface, an IP address can be specified, e.g. `1.2.3.4:8000`. By default,
* a TCP connection is created. To create UDP connection, prepend `udp://`
* prefix, e.g. `udp://:8000`. To summarize, `address` paramer has following
* prefix, e.g. `udp://:8000`. To summarize, `address` parame
te
r has following
* format: `[PROTO://][IP_ADDRESS]:PORT`, where `PROTO` could be `tcp` or
* `udp`.
*
...
...
@@ -3701,7 +3701,7 @@ int mg_resolve(const char *domain_name, char *ip_addr_buf, size_t buf_len);
* is to allow all access. On each request the full list is traversed,
* and the last match wins. Example:
*
* `-0.0.0.0/0,+192.168/16` - deny all acc
c
esses, only allow 192.168/16 subnet
* `-0.0.0.0/0,+192.168/16` - deny all accesses, only allow 192.168/16 subnet
*
* To learn more about subnet masks, see this
* link:https://en.wikipedia.org/wiki/Subnetwork[Wikipedia page on Subnetwork].
...
...
@@ -4794,7 +4794,7 @@ void mg_printf_http_chunk(struct mg_connection *nc, const char *fmt, ...);
/*
* Sends the response status line.
* If `extra_headers` is not NULL, then `extra_headers` are also sent
* after the reponse line. `extra_headers` must NOT end end with new line.
* after the re
s
ponse line. `extra_headers` must NOT end end with new line.
* Example:
*
* mg_send_response_line(nc, 200, "Access-Control-Allow-Origin: *");
...
...
@@ -4818,7 +4818,7 @@ void mg_http_send_error(struct mg_connection *nc, int code, const char *reason);
* `status_code` should be either 301 or 302 and `location` point to the
* new location.
* If `extra_headers` is not empty, then `extra_headers` are also sent
* after the reponse line. `extra_headers` must NOT end end with new line.
* after the re
s
ponse line. `extra_headers` must NOT end end with new line.
*
* Example:
*
...
...
@@ -5392,7 +5392,7 @@ int mg_dns_copy_questions(struct mbuf *io, struct mg_dns_message *msg);
* struct because they might be invalidated as soon as the IO buffer grows
* again.
*
* Returns the number of bytes appened or -1 in case of error.
* Returns the number of bytes appen
d
ed or -1 in case of error.
*/
int
mg_dns_encode_record
(
struct
mbuf
*
io
,
struct
mg_dns_resource_record
*
rr
,
const
char
*
name
,
size_t
nlen
,
const
void
*
rdata
,
...
...
@@ -5730,7 +5730,7 @@ struct mg_coap_option *mg_coap_add_option(struct mg_coap_message *cm,
/*
* Frees the memory allocated for options.
* If the cm param
a
ter doesn't contain any option it does nothing.
* If the cm param
e
ter doesn't contain any option it does nothing.
*/
void
mg_coap_free_options
(
struct
mg_coap_message
*
cm
);
...
...
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