EasyManuals Logo

HP TACL User Manual

HP TACL
235 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #133 background imageLoading...
Page #133 background image
Using $RECEIVE
Initiating and Communicating With Processes
107365 Tandem Computers Incorporated 5–25
Testing Server Programs
You can use TACL to test server programs. One way to do this is to perform the
following steps:
1. Define a request STRUCT and a reply STRUCT.
2. Verify that the server process is running.
3. Open the server using #REQUESTER with the READ option.
4. Loop and prompt for request type; use #CASE enclosures to issue specific test
requests.
Communicating With $CMON
The routine in Figure 5-11, strio, shows how to use STRUCTs and the #REQUESTER
built-in function to send messages to CMON and display replies. For more
information about CMON, see the Guardian Programming Guide. To run this example,
load the file that contains the definitions in Figure 5-11 and enter:
strio
(strio is listed at the end of Figure 5-11.)
Figure 5-11. Creating CMON Messages (Page 1 of 4)
?SECTION cmon_ci STRUCT == Common information for messages
BEGIN
STRUCT groupuser; == Group and user as separate
BEGIN == numbers for ease of setting
BYTE group;
BYTE user;
END;
INT cipri;
FNAME ciinfile;
FNAME cioutfile;
END;
?SECTION logon_msg STRUCT
BEGIN
INT msgcode VALUE -50;
STRUCT ci;
LIKE cmon_ci;
END;

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP TACL and is the answer not in the manual?

HP TACL Specifications

General IconGeneral
BrandHP
ModelTACL
CategorySoftware
LanguageEnglish

Related product manuals