Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ACC Programmer's Reference Guide > Chapter 3 ZCOM Tables and Data Structures

Node Entries Table

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The Node Entries table contains information about the remote ZCOM systems that communicate with the local ZCOM subsystem. Each Local-Node and Remote-Node definition in the TTGEN configuration file occupy one entry in the table. Each entry structure is 392 bytes long and has the format shown in Table 3-4 “Node Entries Table”.

Table 3-4 Node Entries Table

Field Name

Field Description

Field Type

Size (Bytes)

node_num

ZCOM system node number

uns.short

2

timeout

Default timeout value for this node

uns.short

2

flags

Node status and internal flags

uns.int

4

stats

Statistics for this node

struct

16

ndshzrvrs

List of node status event receivers

pointer

8

nhost

Number of hosts in the host array

uns.short

2

spare1

Reserved, not used

uns.short

2

spare2

Reserved, not used

int

4

host

Host link information

struct [4]

4*88

 

NODE_NUM - Node number

This field contains a unique node number that identifies the entry.

TIMEOUT - Default timeout value for this node

This field contains timeout in seconds for requests sent to this remote node. Most remote ZCOM requests (e.g. ZOPEN, ZTIMR, etc) require a definite response from the remote ZCOM subsystem. If the response is not received within the timeout period specified by this field, error ZENTOUT (-23) is returned to the application program. This field is initialized by TTGEN with the timeout value specified in a Remote-Node definition. This field is zero for a local node entry.

FLAGS - Node status and internal flags

This bit-field structure contains bits to maintain state and other internal information about this node. The contents of this field are as follows:

FLAGS.event -

Set to 1 if there is at least one application that wants to be notified of a status change for the node.

FLAGS.valid -

Set to 1 if this node entry in the table is valid; that is, currently defined and in use.

FLAGS.status -

Set to 1 if this node is currently UP. The status bit indicates whether a remote node is usable. If this bit is not set, the LDM will reject all requests to that node with a ZENDOWN (-61) error. For a local node, the status bit indicates that the ZNODE daemon is running properly.

FLAGS.local -

Set to 1 if this node entry in the table represents the local node.

STATS - Statistics for this node

This field is a data structure that contains some statistics on the data traffic for this node. The layout of this structure is shown in Table 3-5 “STATS Data Structure”.

Table 3-5 STATS Data Structure

Field Name

Field Description

Field Type

Size (Bytes)

icount

Number of incoming messages

uns.int

4

ibytes

Number of incoming bytes

uns.int

4

ocount

Number of outgoing messages

uns.int

4

obytes

Number of outgoing bytes

uns.int

4

 

NDSHZRVRS - Pointer to a list of receivers for node status events.

This field contains a pointer to a linked list of applications to be notified whenever this node changes state. Whenever this node changes state from up-to-down or down-to-up, a node status system event message will be sent to each program in this linked list. That is, those applications that have issued a zevent_rcvr() call to receive node status events. This field will be set to zero if there are no applications to be notified.

NHOST - The number of defined hosts in the host array.

This field contains the number of host link records defined in the HOST table below. This field is zero for a local node entry.

HOST - Host 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 “Host Link Information Structure”.

Table 3-6 Host Link Information Structure

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

 

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 in 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 valid bits 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 are up. The data in this structure is maintained by the ZNODE daemon.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000 Hewlett-Packard Development Company, L.P.