跳到主要内容

Online System 操作员

若干网络子程序专供 (但不限于) 与 Online System 网络操作员配合使用。以下是对这些操作员的总体描述:

在所有涉及 Online System 网络操作员的网络操作中, 对收发数据的格式有若干约定。数据被组织成由三个字段组成的 '消息', 依次为操作码、长度和正文。操作码长 1 字节, 是指示正文字段如何解释的代码。长度字段长 2 字节, 给出正文字段以位计的长度, 正文字段包含实际数据。(操作码与长度字段合称报头。)

目前定义了如下操作码:

       Op Code   Meaning

0 This op code is a NOP. No text field exists, and the
contents of the length field are unpredictable. (This
op code is used mainly as a delimiter.)

1 The text field contains EBCDIC characters, one
character per byte. The Online System operators
consider the characters as intended for display as soon
as the text field has been received.

2 The text contains codes for keypushes, one byte per
key. The Online operators consider the keys as
intended for execution as soon as the text field has
been received.

3 The same as for an op code of 2, except that the Online
operators consider that the execution of the keys will
be delayed until all data for that receive operations
has been received.

Online System 操作员发送或接收数据的标准格式是一串消息, 最后一条消息由一个带 NOP 操作码的报头指示, 称为报尾。这些约定是默认情形; 其中任何一条都可以通过适当的程序设计加以改变。

下面是那些供 Online System 操作员使用的子程序的描述。