12. WRITE TO ON-LINE CONSOLE WITH REPLY
This subprogram combines the functions of "WRITE TO ON-LINE CONSOLE" and "READ FROM ON-LINE CONSOLE". The subprogram first sends a string of data to the foreign socket from the specified send socket, waits for it to be received by the foreign socket (or queued locally by the NCP), and then waits for a reply directed toward the specified receive socket. The operation is valid only when the sockets have the correct gender and both are fully open.
The calling sequence is as follows:
CALL @WTOLCR(cmpcd, bfr, len, level, across, down, time,
cmpcd2, bfr2, len2);
where
cmpcdis the completion code variable associated with the local send socket.bfris as in "WRITE TO ON-LINE CONSOLE".lenis as in "WRITE TO ON-LINE CONSOLE".levelis as in "WRITE TO ON-LINE CONSOLE".acrossis as in "WRITE TO ON-LINE CONSOLE".downis as in "WRITE TO ON-LINE CONSOLE".timeis the length of time the subprogram is to wait for completion, individually, of the transmission and reception of data.cmpcd2is the completion code variable associated with the local receive socket.bfr2is asbfrin "READ FROM ON-LINE CONSOLE".len2is aslenin "READ FROM ON-LINE CONSOLE".
The completion codes for the send socket are the same as for the SEND operation, and the completion codes for the receive socket are the same as for the RECEIVE operation.