mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Temporarily disable appdash from docker-compose
Until I read the doc and find how to limit the retention, otherwise it just eats all my ram and cpu and things start to fall apart. PUBLISHED_FROM=eb33fb44736f07b992270689217aca4af70513ff
This commit is contained in:
1 parent
c84af7d1e2
commit
f443c64341
199 files changed
+27289
-3591
No files matched your search
@@ -1,26 +0,0 @@
|
||||
---
|
||||
title: "mg_bind_opt()"
|
||||
decl_name: "mg_bind_opt"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
struct mg_connection *mg_bind_opt(struct mg_mgr *mgr, const char *address,
|
||||
mg_event_handler_t handler,
|
||||
struct mg_bind_opts opts);
|
||||
---
|
||||
|
||||
Create listening connection.
|
||||
|
||||
`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 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 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: Connection remains owned by the manager, do not free().
|
||||
|
||||
Reference in new issue
Block a user