inet_ntop man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

inet_ntop(3)							  inet_ntop(3)

       inet_ntop - Convert a numeric address to a text string

       #include <arpa/inet.h>

       const char *inet_ntop(
	       int af,
	       const void *src,
	       char *dst,
	       size_t size );

       Standard C Library (libc)

       Specifies the address family.  Valid values are AF_INET for an Internet
       Protocol Version 4 (IPv4) address and AF_INET6  for  an	IPv6  address.
       Points  to a buffer that contains the numeric Internet address.	Points
       to a buffer that is to contain the text string.	Specifies the size  of
       the buffer pointed to by the dst parameter.  For Internet Protocol Ver‐
       sion 4 (IPv4) addresses, the minimum buffer size is 16 octets. For IPv6
       addresses,  the	minimum	 buffer	 size is 46 octets.  The <netinet/in.h
       file  defines  the  INET_ADDRSTRLEN  and	 INET6_ADDRSTRLEN   constants,
       respectively, for for these values.

       The  use of this routine is deprecated.	Use the getnameinfo(3) routine

       The inet_ntop() function converts a binary Internet address value to  a
       formatted text string.

       Upon  successful conversion, the inet_ntop() function returns a pointer
       to the buffer containing the text string.  If the  function  fails,  it
       returns a NULL pointer.

       If  the inet_ntop() routine call fails, errno is set to one of the fol‐
       lowing values: The address family specified in af parameter is invalid.
       The size of the buffer is inadequate.

       Functions: getnameinfo(3), inet_pton(3).

       Network Programmer's Guide


List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net