从服务器到客户端
来自远程服务器的数据以字符流的形式发送到客户端. 普通数据只是发送到客户端的显示器, 但在实际显示之前可能会被处理 (展开制表符等).
服务器可以将控制字节插入数据流, 并将 TCP "紧急数据" 指针指向该控制字节, 从而在数据流中嵌入单字节控制消息. 当客户端收到 TCP 紧急数据指针时, TCP 流中直到该紧急字节为止的数据会被缓冲, 以便在处理完控制字节后可能显示, 而被指向的控制字节则被接收并按如下方式解释:
02 A control byte of hex 02 causes the client to discard all buffered
data received from the server that has not yet been written to the
client user's screen.
10 A control byte of hex 10 commands the client to switch to "raw"
mode, where the START and STOP characters are no longer handled by
the client, but are instead treated as plain data.
20 A control byte of hex 20 commands the client to resume interception
and local processing of START and STOP flow control characters.
紧急数据控制字节的所有其他值都被忽略. 在所有情况下, 紧急数据指针所指向的字节都不会写入客户端用户的显示器.