]> git.proxmox.com Git - ceph.git/blob - ceph/src/c-ares/ares_inet_pton.3
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / c-ares / ares_inet_pton.3
1 .\"
2 .\" Copyright (C) 2013 by Daniel Stenberg
3 .\"
4 .\" Permission to use, copy, modify, and distribute this
5 .\" software and its documentation for any purpose and without
6 .\" fee is hereby granted, provided that the above copyright
7 .\" notice appear in all copies and that both that copyright
8 .\" notice and this permission notice appear in supporting
9 .\" documentation, and that the name of M.I.T. not be used in
10 .\" advertising or publicity pertaining to distribution of the
11 .\" software without specific, written prior permission.
12 .\" M.I.T. makes no representations about the suitability of
13 .\" this software for any purpose. It is provided "as is"
14 .\" without express or implied warranty.
15 .\"
16 .TH ARES_INET_PTON 3 "17 Feb 2013"
17 .SH NAME
18 ares_inet_pton \- convert an IPv4 or IPv6 address from text to binary form
19 .SH SYNOPSIS
20 .nf
21 .B #include <ares.h>
22 .PP
23 .B const char *ares_inet_pton(int af, const char *src, void *dst);
24 .fi
25 .SH DESCRIPTION
26 This is a portable version with the identical functionality of the commonly
27 available \fIinet_pton\fP.
28
29 The ares_inet_pton() function converts the address in its standard text
30 presentation form into its numeric binary form. The \fBaf\fP argument shall
31 specify the family of the address. The AF_INET and AF_INET6 address families
32 shall be supported. The \fBsrc\fP argument points to the string being passed
33 in. The \fBdst\fP argument points to a buffer into which the function stores
34 the numeric address; this shall be large enough to hold the numeric address
35 (32 bits for AF_INET, 128 bits for AF_INET6).
36 .SH SEE ALSO
37 .BR ares_init(3),
38 .BR ares_inet_ntop(3)
39 .SH AVAILABILITY
40 made properly publicly available in c-ares for real in version 1.10.0
41 .SH AUTHOR
42 Daniel Stenberg
43