Depend on v7.c properly

PUBLISHED_FROM=cf49d0d345e4a7607c535f9578b8ed4160f2fccd
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-07-22 14:31:13 +00:00
1 parent 27986213aa
commit 6a3d01ee6b
20 files changed
+66 -66

No files matched your search

+7 -7
View File
@@ -8,19 +8,19 @@ signature: |
struct mg_bind_opts opts);
---
Creates a listening connection.
Create listening connection.
The `address` parameter specifies which address to bind to. It's format is the same
`address` parameter tells which address to bind to. It's format is the same
as for the `mg_connect()` call, where `HOST` part is optional. `address`
can just be a port number, e.g. `:8000`. To bind to a specific interface,
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 a UDP connection, prepend a `udp://` prefix,
e.g. `udp://:8000`. To summarise, the `address` paramer has following format:
connection is created. To create UDP connection, prepend `udp://` prefix,
e.g. `udp://:8000`. To summarize, `address` paramer has following format:
`[PROTO://][IP_ADDRESS]:PORT`, where `PROTO` could be `tcp` or `udp`.
See the `mg_bind_opts` structure for a description of the optional
parameters.
Returns a new listening connection or `NULL` on error.
NOTE: The connection remains owned by the manager, do not free().
Return a new listening connection, or `NULL` on error.
NOTE: Connection remains owned by the manager, do not free().