1ARES_INET_NTOP(3)          Library Functions Manual          ARES_INET_NTOP(3)
2
3
4

NAME

6       ares_inet_ntop  - convert a network format address to presentation for‐
7       mat
8

SYNOPSIS

10       #include <ares.h>
11
12       const char *
13       ares_inet_ntop(int af, const void *src, char *dst, ares_socklen_t size);
14

DESCRIPTION

16       This is a portable version with the identical functionality of the com‐
17       monly available inet_ntop.
18
19       The  ares_inet_ntop()  function  converts a numeric address into a text
20       string suitable for presentation. The af  argument  shall  specify  the
21       family  of the address. This can be AF_INET or AF_INET6.  The src argu‐
22       ment points to a buffer holding an IPv4 address if the af  argument  is
23       AF_INET, or an IPv6 address if the af argument is AF_INET6; the address
24       must be in network byte order. The dst  argument  points  to  a  buffer
25       where  the  function  stores the resulting text string; it shall not be
26       NULL. The size argument specifies the size of this buffer, which  shall
27       be  large  enough to hold the text string (INET_ADDRSTRLEN (16) charac‐
28       ters for IPv4, INET6_ADDRSTRLEN (46) characters for IPv6).
29

SEE ALSO

31       ares_init(3), ares_inet_pton(3)
32

AVAILABILITY

34       made properly publicly available in c-ares for real in version 1.10.0
35

AUTHOR

37       Daniel Stenberg
38
39
40
41
42                                  17 Feb 2013                ARES_INET_NTOP(3)
Impressum