mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Fix mongoose docs generation
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
This commit is contained in:
1 parent
ab000c684a
commit
3eb4eb8074
166 files changed
+3125
No files matched your search
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: "mg_conn_addr_to_str()"
|
||||
decl_name: "mg_conn_addr_to_str"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
int mg_conn_addr_to_str(struct mg_connection *c, char *buf, size_t len,
|
||||
int flags);
|
||||
---
|
||||
|
||||
Converts a connection's local or remote address into string.
|
||||
|
||||
The `flags` parameter is a bit mask that controls the behaviour,
|
||||
see `MG_SOCK_STRINGIFY_*` definitions.
|
||||
|
||||
- MG_SOCK_STRINGIFY_IP - print IP address
|
||||
- MG_SOCK_STRINGIFY_PORT - print port number
|
||||
- MG_SOCK_STRINGIFY_REMOTE - print remote peer's IP/port, not local address
|
||||
|
||||
If both port number and IP address are printed, they are separated by `:`.
|
||||
If compiled with `-DMG_ENABLE_IPV6`, IPv6 addresses are supported.
|
||||
Return length of the stringified address.
|
||||
|
||||
Reference in new issue
Block a user