Guardian Programmer's Guide

Table Of Contents
Writing a Command-Interpreter Monitor ($CMON)
Guardian Programmer’s Guide 421922-014
23 - 90
A TACL Macro for Debugging and Testing a $CMON
Program
== Structure for receiving the reply to a Logon^msg message:
[#DEF loggedon^reply STRUCT
BEGIN
INT reply^code;
CHAR reply^text (0:131);
END;
]
== Structure for receiving a reply to a Config^msg message.
== cmon:configreply^text is used when $CMON accepts the
== default parameters. cmon:tacl^config is used when $CMON
== changes the configuration parameters:
[#DEF cmon STRUCT
BEGIN
STRUCT configreply^text;
BEGIN
INT reply^code;
CHAR reply^text (0:131);
END;
STRUCT tacl^config REDEFINES configreply^text;
BEGIN
INT reply^code;
INT count;
INT autologoffdelay;
INT logoffscreenclear;
INT remotesuperid;
INT blindlogon;
INT namelogon;
INT cmontimeout;
INT cmonrequired;
INT remotecmontimeout;
INT remotecmonrequired;
INT nochangeuser;
INT stoponfemodemerr;
INT requestcmonuserconfig;
END;
END;
]
[#PUSH status r^error r^rec prompt
cmon^process^name
cmon^process^sock
]