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
1875653b
Commit
1875653b
authored
8 years ago
by
Evelyn
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mg_bind_opt.md
parent
6df770e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mg_bind_opt.md
docs/c-api/net.h/mg_bind_opt.md
+7
-7
No files found.
docs/c-api/net.h/mg_bind_opt.md
View file @
1875653b
...
...
@@ -8,19 +8,19 @@ signature: |
struct mg_bind_opts opts);
---
Create listening connection.
Create
s a
listening connection.
`address`
parameter tell
s which address to bind to. It's format is the same
The
`address`
parameter specifie
s which address to bind to. It's format is 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,
can
just be
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 summari
ze,
`address`
paramer has following format:
connection is created. To create
a UDP connection, prepend a
`udp://`
prefix,
e.g.
`udp://:8000`
. To summari
se, the
`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.
Return
a new listening connection,
or
`NULL`
on error.
NOTE:
C
onnection remains owned by the manager, do not free().
Return
s a new listening connection
or
`NULL`
on error.
NOTE:
The c
onnection remains owned by the manager, do not free().
This diff is collapsed.
Click to expand it.
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