Jump to main content

##

# 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

Members | Description
--- | ---
h_name | Points to a string containing the name of the host.
h_alias | Points to a null terminated list of pointers that point to the aliases of the host.
h_addrtype | Contains the address type for the host. Currently only AF_INET is supported.
h_length | Contains the length of the h_addr_list.
h_addr_list | Points to a NULL terminated list of pointers that point to the address of the host.