Hostnet structure struct hostent char *h name Official name of host */ char **h aliases: Alias list. * int h addrtype Host address type. * int h length / Length of address. * char **h addr list:; / List of addresses from name server. */ #define h addr h addr list[0]/Address, for backward compatibility. * CSIE NTUT TaiwanCSIE, NTUT, Taiwan 11 Hostnet Structure struct hostent { char *h_name; /* Official name of host. */ char **h_aliases; /* Alias list. */ int h_addrtype; /* Host address type. */ int h_length; /* Length of address. */ char **h_addr_list; /* List of addresses from name server. */ }; #define h_addr h_addr_list[0] /* Address, for backward compatibility. */