TCP/IP Programming Manual
TAL Declaration
?NOLIST, SOURCE SOCKDEFT
STRUCT haliase (*);
 BEGIN
 STRING .EXT ptrs;
 END;
STRUCT hptrs (haliase)[0:4];
STRUCT ha_aliase (*);
 BEGIN
 STRING .EXT ptrs;
 END;
STRUCT ha_ptrs (ha_aliase)[0:4];
STRUCT hostent (*);
 BEGIN
 STRING .EXT h_name;
 STRING .EXT h_aliases (hptrs);
 INT(32) h_addrtype;
 INT(32) h_length;
 STRING .EXT h_addr_list (ha_ptrs);
 END;
h_name
points to the official name of the host.
h_aliases
points to an array of pointers to the various aliases assigned to the host.
h_addrtype
is the type of address. Its value is always AF_INET, indicating an Internet address.
h_length
is the length, in bytes, of each entry pointed to by h_addr_list. Usually, the length is 4
bytes.
h_addr_list
points to an array of null-terminated pointers to the addresses from the name server, in network
order.
if_nameindex
The name index structure holds information for a single interface. This structure is defined in the
if.h header file. The if_nameindex function returns an array of if_nameindex structures with one
structure for each interface. The if_freenameindex function frees the memory used for this array of
structures. This structure applies to NonStop TCP/IP only.
C Declaration
#include <if.h>
struct if_nameindex {
 unsigned int if_index;
 char *if_name;
};
TAL Declaration
?NOLIST, SOURCE SOCKDEFT
Data Structures 67










