ACC Programmer's Reference Guide

56 Chapter3
ZCOM Tables and Data Structures
Node Entries Table
NHOST - The number of defined hosts in the host array.
This field contains the number of host l ink records defined in the HOST
table below. This field is zero for a local node entry.
HOST - H ost link information structure (array)
This array of structures contains information about each of the host links
for this node. It can hold information on up to four host links. Each
element of the array contains the fields for one host link as shown in
Table 3-6.
LINKNAME - The name of the remote system
This field contains the host name or the IP address to be used in
accessing the remote node via TCP/IP. If a host name is specified, it must
be defined in the /etc/hosts file.
STATS - Statistics for this host link
This field is a data structure that contains some statistics on the data
traffic for this link. The layout of this structure is identical to that shown
above. The data i n this structure is maintained by the ZNODE daemon.
FLAGS - Host link status and flags
This bit-field data structure contains information on the status of a link.
It is identical to the flags structure documented above. However only the
status and validbits are currently used. The status bit indicates whether
this link is currently up or not. If the link is down (status =0),the
ZNODE daemon will route remote requests on any secondary links that
areup.ThedatainthisstructureismaintainedbytheZNODEdaemon.
Table 3-6 Host Link Information S tr ucture
Field Name Field Description Field Type Size
(Bytes)
linkname Host name or IP address for this link char [64] 64
stats Statistics for this link struct 16
flags Node status and flags uns.int 4
spare3 Reserved, not used int 4