The SERVER Protocol
CP-67 operates on a line at a time, i.e., a group of characters are processed as a line and not as a sequence of individual characters. Also, the system does normally buffer input lines, that is, input is not normally entered until requested by a read from the system. With IBM 2741 or 1052 terminals, the keyboard is locked until a read is requested. The virtual terminals through which network users have access to the CP-67 system have been designed to support either a line oriented terminal or a character oriented terminal. When CP requests a line of input, the SERVER transmits a prompting code X'80'. This character can be used to signal a user process to change transmission modes and to transmit an input line. Characters received by the SERVER are buffered until a NL character is received. Lines received can then be used to satisfy CP requests for an input line.
CP may send out lines which may or may not end with a NL character. If a line does not end with a NL character, the prompting character will naturally be sent following the output line to request input to a CP process.
When a user wishes to interrupt a CP process, i.e., to change modes, an interrupt code X'80' should be sent to the SERVER. This code will result in an asynchronous interrupt being sent to the running process, stimulating the pressing of the 'attention' button on a 2741 terminal. Together with the transmission of the interrupt code, the user should cause an INS to be sent over the send link. This signal will be synchronized with the interrupt code. If the interrupt code has not yet been received and processed, all characters buffered and those received before the receipt of the interrupt code will be flushed, i.e., deleted. When the interrupt code is received, it will be paired with the previously received INS. If an INS is received after an interrupt code has been received and processed, the INS will be paired with this previously received interrupt code.
If CP has a line to send to a user after it has requested an input line but before it has received any input, the SERVER will transmit an INS on the user's receive link to notify the user that previously sent prompting character should be retracted and that a line has been or will be sent to the user. This message line is called a "warning".