Guardian Programmer's Guide

Table Of Contents
Contents
Guardian Programmer’s Guide421922-014
v
6. Communicating With Processes (continued)
6. Communicating With Processes (continued)
Receiving and Replying to Messages From Other Processes 6-10
Opening $RECEIVE for Two-Way Communication 6-10
Reading Messages for Two-Way Communication 6-11
Replying to Messages 6-11
Sending, Receiving, and Replying to Messages: An Example 6-13
Closing $RECEIVE 6-13
Receiving Messages From Other Processes: One-Way Communication 6-15
Opening $RECEIVE for One-Way Communication 6-15
Reading From $RECEIVE for One-Way Communication 6-15
Sending and Receiving One-Way Messages: An Example 6-15
Handling Multiple Messages Concurrently 6-17
Opening $RECEIVE to Allow Concurrent Message Processing 6-17
Reading Messages for Concurrent Processing 6-18
Getting Information About Messages Read From $RECEIVE 6-19
Replying to Messages 6-21
Handling Multiple Messages Concurrently: An Example 6-22
Checking for Canceled Messages 6-23
Checking for Cancellation Messages 6-24
Using the MESSAGESTATUS Procedure 6-25
Receiving and Processing System Messages 6-26
Receiving System Messages 6-27
Processing Open and Close System Messages 6-29
Processing Control, Setmode, Setparam, and Controlbuf Messages 6-30
Handling Errors 6-31
Communicating With Processes: Sample Programs 6-31
Programming the Requester 6-32
Programming the Server 6-51
7. Using DEFINEs
Example Uses for DEFINEs 7-2
Example of a CLASS MAP DEFINE 7-3
Example of a CLASS SEARCH DEFINE 7-4
Example of a CLASS TAPE DEFINE 7-5
CLASS DEFAULTS DEFINEs 7-5
DEFINE Names 7-7