Defines an internet host.
#include <netdb.h>
struct hostent
{
char *h_name;
char **h_aliases;
short h_addrtype;
short h_length;
char **h_addr_list;
#define h_addr h_addr_list[0]
};
Points to the official name of the host.
Points to the first element in a list of addresses of alternative names for the host (zero terminates the list).
Specifies the type of address being returned (always AF_INET).
Specifies the length in bytes of the host’s address.
Points to the first element (in network byte order) containing the addresses for the host (zero terminates the list).
Specifies the first address in h_addr_list (for backward compatibility).