Skip to main content

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

  • cmpcd is the completion code variable associated with the local send socket.
  • bfr is as in "WRITE TO ON-LINE CONSOLE".
  • len is as in "WRITE TO ON-LINE CONSOLE".
  • level is as in "WRITE TO ON-LINE CONSOLE".
  • across is as in "WRITE TO ON-LINE CONSOLE".
  • down is as in "WRITE TO ON-LINE CONSOLE".
  • time is the length of time the subprogram is to wait for completion, individually, of the transmission and reception of data.
  • cmpcd2 is the completion code variable associated with the local receive socket.
  • bfr2 is as bfr in "READ FROM ON-LINE CONSOLE".
  • len2 is as len in "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.