分享
 
 
 

RFC1080 - Telnet remote flow control option

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Network Working Group C. Hedrick

Request for Comments: 1080 Rutgers University

November 1988

Telnet Remote Flow Control Option

Status of This Memo

This RFCspecifies a standard for the Internet community. Hosts on

the Internet that do remote flow control within the Telnet protocol

are eXPected to adopt and implement this standard. Distribution of

this memo is unlimited.

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.

There are two common ways of doing flow control: hardware and

software. Hardware flow control uses signals on wires dedicated for

this purpose. Software flow control uses one or two specific

characters sent along the same path as normal input data. Most

commonly, XOFF (control-S) and XON (control-Q) are used to stop and

start output, respectively. The option described herein is useful

primarily where software flow control is being used. (Since hardware

flow control does not preempt any characters, there is normally no

need to disable it.)

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. Thus this RFCdefines a way to propagate flow control

status from the host computer to the user telnet process.

1. Command Name and Code

TOGGLE-FLOW-CONTROL

Code = 33

2. Command Meanings

IAC WILL TOGGLE-FLOW-CONTROL

Sender is willing to enable and disable flow control upon

command.

IAC WON'T TOGGLE-FLOW-CONTROL

Sender refuses to enable and disable flow control. Nothing is

implied about whether sender does or does not use flow control.

It is simply unwilling to enable and disable it using this

protocol.

IAC DO TOGGLE-FLOW-CONTROL

Sender is willing to send commands to enable and disable flow

control.

IAC DON'T TOGGLE-FLOW-CONTROL

Sender refuses to send command to enable and disable flow

control.

IAC SB TOGGLE-FLOW-CONTROL OFF IAC SE

Sender requests receiver to disable flow control. The code for

OFF is 0.

IAC SB TOGGLE-FLOW-CONTROL ON IAC SE

Sender requests receiver to enable flow control. The code for

ON is 1.

3. Default

WON'T TOGGLE-FLOW-CONTROL

Flow control information will not be exchanged.

DON'T TOGGLE-FLOW-CONTROL

Flow control information will not be exchanged.

4. 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 reenabled by another exchange of DO and WILL.

Once the hosts have exchanged a WILL and a DO, the sender of the DO

TOGGLE-FLOW-CONTROL is free to send subnegotiations to enable and

disable flow control in the other process. Normally, the sender of

the DO will be a host, and the other end will be a user telnet

process, which is connected to a terminal. Thus the protocol is

normally asymmetric. However it may be used in both directions

without confusion should need for this arise.

As soon as the DO and WILL have been exchanged, the sender of the

WILL must enable flow control. This allows flow control to begin in

a known state. Should the option be disabled by exchange of DONT and

WONT, flow control may revert to an implementation-defined default

state. It is not safe to assume that flow control will remain in the

state requested by the most recent subnegotiation.

Currently, only two command codes are defined for the

subnegotiations: flow control off (code 0) and flow control on (code

1). Neither of these codes requires any additional data. However it

is possible that additional commands may be added. Thus

subnegotiations having command codes other than 0 and 1 should be

ignored.

Here is an example of use of this option:

Host1: IAC DO TOGGLE-FLOW-CONTROL

Host2: IAC WILL TOGGLE-FLOW-CONTROL

(Host1 is now free to send commands to change flow control.

Note that host2 must now have enabled flow control.)

Host1: IAC SB TOGGLE-FLOW-CONTROL OFF IAC SE

Host1: IAC SB TOGGLE-FLOW-CONTROL ON IAC SE

Author's Address:

Charles Hedrick

Rutgers University

Center for Computer and Information Services

Hill Center, Busch Campus

P.O. Box 879

Piscataway, NJ 08855-0879

Phone: (201) 932-3088

Email: HEDRICK@ARAMIS.RUTGERS.EDU

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有