mongoose/docs/c-api/util.h/mg_sock_addr_to_str.md
Sergey Lyubka 8d76733fad Make mg_conn_addr_to_str return len
Also amend api_net.js to use returned length.

PUBLISHED_FROM=38e15f9587edf28049c5b9e5f126b4db159910e8
2017-06-26 21:02:02 +00:00

333 B

title decl_name symbol_kind signature
mg_sock_addr_to_str() mg_sock_addr_to_str func int mg_sock_addr_to_str(const union socket_address *sa, char *buf, size_t len, int flags);

Convert the socket's address into string.

flags is MG_SOCK_STRINGIFY_IP and/or MG_SOCK_STRINGIFY_PORT.