Does anyone understand the hostent structure?
The only thing I get is that the last 4 bytes are the local machine's ip address in reverse.
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. */ };
The only thing I get is that the last 4 bytes are the local machine's ip address in reverse.