TS/MP Pathsend and Server Programming Manual (G06.24+, H06.03+)

Examples
NonStop TS/MP Pathsend and Server Programming Manual132500
B-6
Pathsend Requester Example
?PAGE "STRUCTURE NEEDED TO PROCESS PARAM MSGS"
?SECTION PARAM
! The following is used to process PARAM messages
STRUCT CI^PARAM (*); !PARAM msg
BEGIN !
INT MSG^CODE, ![0] -3
NUM^PARAMS; ![1] number of PARAMS in this msg
STR PARAMETERS[0:1023]; ![2] PARAMS
END; !
?PAGE "STRUCTURE OF THE INPUT FILE"
?SECTION BREQ^INPUT
! The following is the record format of the edit file, which is the
! input to the BREQ program.
!
STRUCT BREQ^INPUT^REC^TEMPLATE (*);
BEGIN
STRUCT SERVER^REQUEST [0:1];
BEGIN
STR PATHMON^ASSIGN^NAME[0:30];
STR PATHMON^SYSTEM^AND^PROCESS^NAME[0:14];
STR SERVER^CLASS[0:14];
END;
END;
?PAGE "STRUCTURE OF THE BREQ OUTPUT RECORD"
?SECTION BREQ^OUTPUT
! The following is the structure of the output record that BREQ
! writes to the OUT file specified in the run line.
STRUCT BREQ^OUTPUT^REC^TEMPLATE (*);
BEGIN
STRUCT SERVER^REPLY [0:1];
BEGIN
STR SYSTEM^NAME[0:7];
STR PROCESS^NAME[0:7];
STRUCT ERROR^MSG;
BEGIN
STR PATHSEND^ERROR[0:77];
STR FILE^SYSTEM^ERROR[0:77];
END;
END;
STR NON^SEND^ERROR^MSG[0:77];
END; ! BREQ output rec template