Guardian Programmer's Guide

Table Of Contents
Contents
Guardian Programmer’s Guide421922-014
xvi
20. Interfacing With the ERROR Program
20. Interfacing With the ERROR Program
Creating an ERROR Process 20-2
Opening an ERROR Process 20-3
Sending an ERROR Process a Startup Message 20-4
Reading and Processing Error-Message Text 20-5
Closing and Deleting an ERROR Process 20-5
Using the ERROR Process: An Example 20-6
21. Writing a Requester Program
Functions of a Requester 21-1
Terminal Interface 21-2
Field Validation 21-2
Data Mapping 21-2
Application Control 21-3
File System I/O Synchronization 21-4
Sync-Depth 21-5
Sync-Depth in Practice 21-6
File Sync Block Checkpoints (Example) 21-7
Writing a Requester Program: An Example 21-9
User Interface 21-10
Application Overview 21-10
Coding the Requester Program 21-14
22. Writing a Server Program
Functions of a Server Process 22-1
Multithreaded and Single-Threaded Servers 22-1
Receive-Depth
22-2
Context-Free Servers
22-3
Maintaining an Opener Table 22-3
The Opener Table 22-3
Getting Message Information 22-4
Adding a Requester to the Opener Table 22-5
Checking a Request Against the Opener Table 22-6
Deleting a Requester From the Opener Table 22-6
Writing a Server Program: An Example 22-8
Application Overview 22-8
The Part-Query Server ($SER1) 22-10
The Process-Order Server ($SER2) 22-28
The Order-Query Server ($SER3) 22-48