Guardian Programmer's Guide

Table Of Contents
Writing a Server Program
Guardian Programmer’s Guide 421922-014
22 - 48
The Order-Query Server ($SER3)
! For any other error return, call the FILE^ERRORS
! procedure:
OTHERWISE -> CALL FILE^ERRORS(RECV^NUM);
END;
! Reply to the message:
CALL REPLYX(SBUFFER,
REPLY^LEN,
!count^written!,
!message^tag!,
REPLY^ERROR);
END;
END;
The Order-Query Server ($SER3)
Figure 22-5 shows the function of each procedure in the order-query server and the
relationships among the procedures.
As you can see from Figure 22-5, the structure of the order-query server is similar to
that of the part-query and process-order servers. The SERVER procedure and the
procedures for handling system messages are the same as for the part-query and
process-order servers. The differences are in the PROCESS^USER^REQUEST
procedure.
Figure 22-5. Relationship Between Major Procedures in the Order-Query Server
VST112.VSD