Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/h/hostent.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/h/hostent.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/h/hostent.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/h/hostent.html on line 8

hostent

Structure that describes an Internet host

Synopsis:

#include <netdb.h>

struct  hostent {
     char *  h_name;     
     char ** h_aliases; 
     int     h_addrtype;  
     int     h_length;    
     char ** h_addr_list;
};

#define h_addr  h_addr_list[0]

Description:

This structure describes an Internet host. It contains either the information obtained from a name server, or broken-out fields from a line in /etc/hosts.

The members of this structure are:

h_name
The official name of the host.
h_aliases
A zero-terminated array of alternate names for the host.
h_addrtype
The type of address being returned; currently always AF_INET.
h_length
The length of the address, in bytes.
h_addr_list
A zero-terminated array of network addresses for the host. Host addresses are returned in network byte order.

A #define statement is used to define the following:

h_addr
The first address in h_addr_list. This is for backward compatibility.

Classification:

POSIX 1003.1

See also:

endhostent(), gethostbyaddr(), gethostbyname(), gethostent(), sethostent()

/etc/hosts, /etc/resolv.conf in the Utilities Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/h/hostent.html on line 136

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/h/hostent.html on line 136