Skip to main content

From Server to Client

Data from the remote server is sent to the client as a stream of characters. Normal data is simply sent to the client's display, but may be processed before actual display (tabs expanded, etc.).

The server can imbed single-byte control messages in the data stream by inserting the control byte in the stream of data and pointing the TCP "urgent-data" pointer at the control byte. When a TCP urgent-data pointer is received by the client, data in the TCP stream up to the urgent byte is buffered for possible display after the control byte is handled, and the control byte pointed to is received and interpreted as follows:

02. Discard Buffered Data​

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. Switch to Raw Mode​

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. Resume START and STOP Processing​

20   A control byte of hex 20 commands the client to resume interception
and local processing of START and STOP flow control characters.

80. Send Window Size​

80   The client responds by sending the current window size as above.

All other values of the urgent-data control byte are ignored. In all cases, the byte pointed to by the urgent data pointer is NOT written to the client user's display.