hostent Structure

C

struct hostent {
    char * h_name;
    char ** h_alias;
    int h_addrtype;
    int h_length;
    char ** h_addr_list;
};

Description

This is record hostenet

Members

MembersDescription
h_namePoints to a string containing the name of the host.
h_aliasPoints to a null terminated list of pointers that point to the aliases of the host.
h_addrtypeContains the address type for the host. Currently only AF_INET is supported.
h_lengthContains the length of the h_addr_list.
h_addr_listPoints to a NULL terminated list of pointers that point to the address of the host.