.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 2000 Sam Varshavchik .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References: RFC 2553 .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH inet_ntop 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE inet_ntop \- convert IPv4 and IPv6 addresses from binary to text form .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBconst char *inet_ntop(int \fP\fIaf\fP\fB, const void *restrict \fP\fIsrc\fP\fB,\fP \fB char \fP\fIdst\fP\fB[restrict .\fP\fIsize\fP\fB], socklen_t \fP\fIsize\fP\fB);\fP .fi .SH DESCRIPCIÓN This function converts the network address structure \fIsrc\fP in the \fIaf\fP address family into a character string. The resulting string is copied to the buffer pointed to by \fIdst\fP, which must be a non\-null pointer. The caller specifies the number of bytes available in this buffer in the argument \fIsize\fP. .PP \fBinet_ntop\fP() extiende la función \fBinet_ntoa\fP(3) para soportar múltiples familias de direcciones, \fBinet_ntoa\fP(3) es considerada obsoleta en la actualidad en favor de \fBinet_ntop\fP(). Las siguientes familias de direcciones de red están actualmente soportadas: .TP \fBAF_INET\fP \fIsrc\fP points to a \fIstruct in_addr\fP (in network byte order) which is converted to an IPv4 network address in the dotted\-decimal format, "\fIddd.ddd.ddd.ddd\fP". The buffer \fIdst\fP must be at least \fBINET_ADDRSTRLEN\fP bytes long. .TP \fBAF_INET6\fP \fIsrc\fP apunta a una estructura \fIstruct in6_addr\fP (en orden de bytes de la red) que es convertida a una representación de esta dirección en el formato de dirección de red IPv6 más apropiado para dicha dirección. El buffer \fIdst\fP debe tener al menos \fBINET6_ADDRSTRLEN\fP bytes de longitud. .SH "VALOR DEVUELTO" On success, \fBinet_ntop\fP() returns a non\-null pointer to \fIdst\fP. NULL is returned if there was an error, with \fIerrno\fP set to indicate the error. .SH ERRORES .TP \fBEAFNOSUPPORT\fP \fIaf\fP was not a valid address family. .TP \fBENOSPC\fP The converted address string would exceed the size given by \fIsize\fP. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBinet_ntop\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES POSIX.1\-2008. .SH HISTORIAL POSIX.1\-2001. .PP .\" 2.1.3: size_t, 2.1.91: socklen_t Note that RFC\ 2553 defines a prototype where the last argument \fIsize\fP is of type \fIsize_t\fP. Many systems follow RFC\ 2553. glibc 2.0 and 2.1 have \fIsize_t\fP, but 2.2 and later have \fIsocklen_t\fP. .SH ERRORES \fBAF_INET6\fP convierte direcciones IPv6 traducidas a IPv4 a un formato IPv6. .SH EJEMPLOS Vea \fBinet_pton\fP(3). .SH "VÉASE TAMBIÉN" \fBgetnameinfo\fP(3), \fBinet\fP(3), \fBinet_pton\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .