typedef struct hostent {
char FAR *h_name; /* official name of host */
char FAR FAR **h_aliases; /* alias list */
short h_addrtype; /* host address type */
short h_length; /* length of address */
char FAR FAR **h_addr_list; /* list of addresses */
}
首先参阅MSDN关于hostent结构的定义:typedef struct hostent { char FAR *h_name; /* official name of host */ char FAR FAR **h_aliases; /* alias list */ short h_addrtype; /* hos