quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

ares_inet_pton.3 (1303B)


      1 .\"
      2 .\" Copyright (C) 2013 by Daniel Stenberg
      3 .\" SPDX-License-Identifier: MIT
      4 .\"
      5 .TH ARES_INET_PTON 3 "17 Feb 2013"
      6 .SH NAME
      7 ares_inet_pton \- convert an IPv4 or IPv6 address from text to binary form
      8 .SH SYNOPSIS
      9 .nf
     10 #include <ares.h>
     11 
     12 int ares_inet_pton(int \fIaf\fP, const char *\fIsrc\fP, void *\fIdst\fP);
     13 .fi
     14 .SH DESCRIPTION
     15 This is a portable version with the identical functionality of the commonly
     16 available \fIinet_pton\fP.
     17 
     18 The ares_inet_pton() function converts the address in its standard text
     19 presentation form into its numeric binary form. The \fBaf\fP argument shall
     20 specify the family of the address. The AF_INET and AF_INET6 address families
     21 shall be supported. The \fBsrc\fP argument points to the string being passed
     22 in. The \fBdst\fP argument points to a buffer into which the function stores
     23 the numeric address; this shall be large enough to hold the numeric address
     24 (32 bits for AF_INET, 128 bits for AF_INET6).
     25 
     26 It returns 1 if the address was valid for the specified address family, or 0
     27 if the address was not parseable in the specified address family, or -1 if
     28 some system error occurred (in which case errno will have been set).
     29 
     30 .SH SEE ALSO
     31 .BR ares_init (3),
     32 .BR ares_inet_ntop (3)
     33 .SH AVAILABILITY
     34 made properly publicly available in c-ares for real in version 1.10.0
     35