aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorCampbell He <duskmoon314@users.noreply.github.com>2021-11-25 17:05:15 +0800
committerGitHub <noreply@github.com>2021-11-25 10:05:15 +0100
commitc7843ecfbc935823ed8c46af77d64e9c1f285c54 (patch)
treeffda42db09d132fa5a2ce78a2779148de222d8f0 /docs/src
parent1e7074913e1d2a1be72b62ba807325c14b0b317a (diff)
downloadlibuv-c7843ecfbc935823ed8c46af77d64e9c1f285c54.tar.gz
libuv-c7843ecfbc935823ed8c46af77d64e9c1f285c54.zip
unix,win: add uv_ip_name to get name from sockaddr (#3368)
uv_ip_name is a kind of wrapper of uv_ip4_name and uv_ip6_name which can be used after getaddrinfo to get the IP name directly from addrinfo.ai_addr.
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index 2fe6c1ce..8017e8e1 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -377,6 +377,10 @@ API
Convert a binary structure containing an IPv6 address to a string.
+.. c:function:: int uv_ip_name(const struct sockaddr *src, char *dst, size_t size)
+
+ Convert a binary structure containing an IPv4 address or an IPv6 address to a string.
+
.. c:function:: int uv_inet_ntop(int af, const void* src, char* dst, size_t size)
.. c:function:: int uv_inet_pton(int af, const char* src, void* dst)