Network Status Table

This table is called @NET_STATUS. This table available in any DP4 configuration, though its use varies considerably according to the configuration. No records exist in this table on the database: the records which are returned when the table is read are constructed within the programs providing the DP4 service.

The fields in this table are:

Field Name Notes
net_status.info_from.server Server from which data required. This is the first part of the key to this table
net_status.info_about.server Server about which data required. This is the second part of the key to this table
net_status.net_mode

Server status as summarised in the table below:

Value Meaning
0 Status not known
STAY_OFFLINE  (3) Server believed to be off-line. Can be used when forcing a server off-line by posting to network table
OFFLINE (2) Server believed to be off-line
ONLINE (1) Server believed to be on-line

The values ONLINE, OFFLINE,STAY_OFFLINE are defined in network.h.

net_status.err_mode

Value indicating network error handling mode for this program.

net_status.resil_type

Current resilience type on local machine as follows:

Value Meading
0 No networking, no resilience (Standalone configuration) or Named Connection Configuration connection to local machine
1 (Simple) Client Only Networking or Named Connection Configuration connection to remote machine
2 Networking with Local Database Resilience Client
3 Networking with AUXDISTR.
Does not switch to local database on network errors.
4 Networking with AUXDISTR.
Switch to accssing and possibly updating local database on network errors.
The err_mode field will indicate how the local database is used,
as described in Network Error Handling Options with Multiple Resilience
5 Networking with AUXDISTR. No local database (-nolocal option specified)

This use of the resil_type field for Named Connection Configurations is explained further here.

net_status.this_machine.server Server number of local machine (Only valid in Multiple Resilience Configurations). Zero for client only machines and in other Configurations.
net_status.file_server Server number to which remote file functions such as sf_open(),sf_read() etc, are directed. You can select the server for these operations by updating the network status table.
net_status.remote_files This field is only valid in the local database resilience configuration, and indicates whether remote file operations are directed to the local machine or the remote machine. (See information on -readlocal for details).

Other fields in this table are reserved for internal use

Use of Network Status Table

For further information on how this table is used please refer to either:

or: