mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Docs are generated for Mongoose
Comments in headers are changed a bit: removed adoc-specific stuff, markdown is used instead PUBLISHED_FROM=9242cce85cc52a47a197d377e7e23804721a6bb5
This commit is contained in:
1 parent
d38b0dbf5b
commit
7bed7ff482
169 files changed
+3375
-29
No files matched your search
@@ -0,0 +1,21 @@
|
||||
---
|
||||
title: "mg_conn_addr_to_str()"
|
||||
decl_name: "mg_conn_addr_to_str"
|
||||
symbol_kind: "func"
|
||||
signature: |
|
||||
void mg_conn_addr_to_str(struct mg_connection *nc, char *buf, size_t len,
|
||||
int flags);
|
||||
---
|
||||
|
||||
Convert connection's local or remote address into string.
|
||||
|
||||
The `flags` parameter is a bit mask that controls the behavior,
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user