As for the hostent structure, it's kind of a pain.
h_name is the address of the first character of the hostname.
h_aliases is the address of the list off addresses of aliases -- you would need to use copymemory or something to get this, I think -- unless you didn't care about it, then that would make it easier for you.
the next two are just normal ints that you can read straight off.
h_addr_list os similar to h_aliases except it contains IP (probably) addresses.
Do you have a more specific question?
h_name is the address of the first character of the hostname.
h_aliases is the address of the list off addresses of aliases -- you would need to use copymemory or something to get this, I think -- unless you didn't care about it, then that would make it easier for you.
the next two are just normal ints that you can read straight off.
h_addr_list os similar to h_aliases except it contains IP (probably) addresses.
Do you have a more specific question?