Network Working Group C. Hedrick
Request for Comments: 1372 Rutgers University
Obsoletes: RFC 1080 D. Borman
Cray Research, Inc.
October 1992
Telnet Remote Flow Control Option
1. Command Names and Codes
TOGGLE-FLOW-CONTROL 33
2. Command Meanings
IAC WILL TOGGLE-FLOW-CONTROL
Hedrick & Borman [Page 1]
RFC 1372 Telnet Remote Flow Control Option October 1992
IAC DONT TOGGLE-FLOW-CONTROL
3. Default Specification
The default specification for this option is
4. Motivation
This memo describes a method of remotely toggling flow control between a user telnet process and the attached terminal. Only flow control of data being transmitted from the telnet process to the terminal is considered. Many systems will also allow flow control of data from the terminal to the telnet process, however there is seldom need to change this behavior repeatedly during the session.
Hedrick & Borman [Page 2]
RFC 1372 Telnet Remote Flow Control Option October 1992
The primary difficulty with software flow control is that it preempts one or two characters. Host software often requires the user to be able to input every possible ASCII character. (Certain editors are notorious for having XOFF and XON as commonly-used commands.) For this reason, operating systems often allow programs to disable flow control. While it is disabled, the characters that normally signal flow control may be read as normal input. In a telnet environment, flow control is normally done by the user telnet process, not by the host computer. In addition, many operating systems, when flow control is enabled, the user may specify whether the XOFF character is the only character that is allowed to re-enable the output of data, or whether any typed character should re-enable the flow of data. Thus this RFC defines a way to propagate flow control status from the host computer to the user telnet process.
5. Description of the Option
Use of the option requires two phases. In the first phase, the telnet processes agree that one of them will TOGGLE-FLOW-CONTROL. WILL and DO are used only in this first phase. In general there will be only one exchange of WILL and DO for a session. Subnegotiations must not be issued until DO and WILL have been exchanged. It is permissible for either side to turn off the option by sending a WONT or DONT. Should this happen, no more subnegotiations may be sent, unless the option is re-enabled by another exchange of DO and WILL.
Hedrick & Borman [Page 3]
RFC 1372 Telnet Remote Flow Control Option October 1992
In most implementations of software flow control, when enabled, the XOFF and XON characters are never propagated to the server; they are typically eaten by the terminal driver between the telnet client and the attached terminal. In most implementations that support the RESTART-ANY functionality, the typed character that re-enables the output is not eaten by the terminal driver, unless it is the XON character.
Hedrick & Borman [Page 4]
RFC 1372 Telnet Remote Flow Control Option October 1992 6. ExampleHere is an example of the use of this option:
Hedrick & Borman [Page 5]
RFC 1372 Telnet Remote Flow Control Option October 1992
Authors' Addresses