Guardian Programmer's Guide

Table Of Contents
Communicating With a TACL Process
Guardian Programmer’s Guide 421922-014
8 - 11
Using ASSIGNs and PARAMs
All parameter values assigned using PARAM commands are delivered to the starting
process in one Param message:
The maximum length of a Param message is 1028 bytes.
Assume that the following PARAM command has been issued at the TACL prompt:
PARAM S1 TEXT-STRING
PARAM I1 123
The Param message requested by the new process contains the following:
Structure of a Param message:
STRUCT CI^PARAM;
BEGIN
INT MSG^CODE; !word 0 – value -3
INT NUMPARAMS; !word 1 – number of
! parameters in this
message
STRING PARAMETERS[0:1023]; !word 2 – the parameters
END;
The structure of each parameter in the PARAMETERS field:
param[0] = “n,” length in bytes of parameter name
param[1] FOR n = parameter name
param[n+1] = “v,” length in bytes of parameter value
param[n+2] FOR v = parameter value
VST042.VSD