10. Write to Online Console with Reply
This subprogram combines the functions of 'WRITE TO ONLINE CONSOLE' and 'READ FROM ONLINE CONSOLE'. The subprogram first sends a string of data to the foreign socket form 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 ONLINE CONSOLE'.
'len' is as in 'WRITE TO ONLINE CONSOLE'.
'level' is an in 'WRITE TO ONLINE CONSOLE'.
'across' as in 'WRITE TO ONLINE CONSOLE'.
'down' is as in 'WRITE TO ONLINE 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.
'brf2' is as 'bfr' in 'READ FROM ONLINE CONSOLE'.
'len2' is as 'len' in 'READ FROM ONLINE 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.