Blame ares_inet_ntop.3

Packit 514978
.\"
Packit 514978
.\" Copyright (C) 2013 by Daniel Stenberg
Packit 514978
.\"
Packit 514978
.\" Permission to use, copy, modify, and distribute this
Packit 514978
.\" software and its documentation for any purpose and without
Packit 514978
.\" fee is hereby granted, provided that the above copyright
Packit 514978
.\" notice appear in all copies and that both that copyright
Packit 514978
.\" notice and this permission notice appear in supporting
Packit 514978
.\" documentation, and that the name of M.I.T. not be used in
Packit 514978
.\" advertising or publicity pertaining to distribution of the
Packit 514978
.\" software without specific, written prior permission.
Packit 514978
.\" M.I.T. makes no representations about the suitability of
Packit 514978
.\" this software for any purpose.  It is provided "as is"
Packit 514978
.\" without express or implied warranty.
Packit 514978
.\"
Packit 514978
.TH ARES_INET_NTOP 3 "17 Feb 2013"
Packit 514978
.SH NAME
Packit 514978
ares_inet_ntop \- convert a network format address to presentation format
Packit 514978
.SH SYNOPSIS
Packit 514978
.nf
Packit 514978
.B #include <ares.h>
Packit 514978
.PP
Packit 514978
.B const char *
Packit 514978
.B ares_inet_ntop(int af, const void *src, char *dst, ares_socklen_t size);
Packit 514978
.fi
Packit 514978
.SH DESCRIPTION
Packit 514978
This is a portable version with the identical functionality of the commonly
Packit 514978
available \fIinet_ntop\fP.
Packit 514978
Packit 514978
The ares_inet_ntop() function converts a numeric address into a text string
Packit 514978
suitable for presentation. The \fBaf\fP argument shall specify the family of
Packit 514978
the address. This can be AF_INET or AF_INET6.  The \fBsrc\fP argument points
Packit 514978
to a buffer holding an IPv4 address if the af argument is AF_INET, or an IPv6
Packit 514978
address if the af argument is AF_INET6; the address must be in network byte
Packit 514978
order. The \fBdst\fP argument points to a buffer where the function stores the
Packit 514978
resulting text string; it shall not be NULL. The \fBsize\fP argument specifies
Packit 514978
the size of this buffer, which shall be large enough to hold the text string
Packit 514978
(INET_ADDRSTRLEN (16) characters for IPv4, INET6_ADDRSTRLEN (46) characters
Packit 514978
for IPv6).
Packit 514978
.SH SEE ALSO
Packit 514978
.BR ares_init(3),
Packit 514978
.BR ares_inet_pton(3)
Packit 514978
.SH AVAILABILITY
Packit 514978
made properly publicly available in c-ares for real in version 1.10.0
Packit 514978
.SH AUTHOR
Packit 514978
Daniel Stenberg
Packit 514978