This structure is used by the GetHostByAddress and GetHostByName methods to return
information about a specified host. The application must never
attempt to modify this structure or to free any of its
components.
Only one copy of this structure is allocated per thread, so the
application should copy any information it needs before issuing any
other function calls. This is the same data structure used by the
Windows Sockets API.
typedef struct _HOSTENT
{
char * h_name;
char ** h_aliases;
short h_addrtype;
short h_length;
char ** h_addr_list;
} HOSTENT, *LPHOSTENT;