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

NAME

6       ares_inet_pton  -  convert  an IPv4 or IPv6 address from text to binary
7       form
8

SYNOPSIS

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

DESCRIPTION

15       This is a portable version with the identical functionality of the com‐
16       monly available inet_pton.
17
18       The ares_inet_pton() function converts the address in its standard text
19       presentation form into its numeric binary form. The af  argument  shall
20       specify  the  family  of  the address. The AF_INET and AF_INET6 address
21       families shall be supported. The src  argument  points  to  the  string
22       being  passed  in.  The  dst argument points to a buffer into which the
23       function stores the numeric address; this shall be large enough to hold
24       the numeric address (32 bits for AF_INET, 128 bits for AF_INET6).
25

SEE ALSO

27       ares_init(3), ares_inet_ntop(3)
28

AVAILABILITY

30       made properly publicly available in c-ares for real in version 1.10.0
31

AUTHOR

33       Daniel Stenberg
34
35
36
37
38                                  17 Feb 2013                ARES_INET_PTON(3)
Impressum