01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LAYERS (5) LAYERS (5)<br />

NAME<br />

layers - protocol used between host and windowing terminal under<br />

layers(!)<br />

SYNOPSIS<br />

#include <br />

DESCRIPTION<br />

layers are asynchronous windows supported by the operating system in a<br />

windowing terminal. Communication between the UNIX system<br />

processes and terminal processes under layers(l) occurs via multiplexed<br />

channels managed by the respective operating systems using a protocol<br />

as specified in xtproto(5).<br />

The contents of packets transferring data between a UNIX system process<br />

and a layer are asymmetric. Data sent from the UNIX system to a particular<br />

terminal process is undifferentiated and it is up to the terminal process<br />

to interpret the contents of packets.<br />

Control information for terminal processes is sent via channel 0. Process<br />

0 in the windowing terminal performs the designated functions on behalf<br />

of the process connected to the designated channel. These packets take<br />

the form:<br />

command, channel<br />

except for timeout and jagent information which take the form<br />

command, data . ..<br />

The commands are the bottom eight bits extracted from the following<br />

ioctl(2) codes:<br />

JBOOT Prepare to load a new terminal program into the designated<br />

layer.<br />

JTERM Kill the downloaded layer program, and restore the default<br />

window program.<br />

JTIMO Set the timeout parameters for the protocol. The data consist<br />

of two bytes: the value of the receive timeout in seconds,<br />

and the value of the transmit timeout in seconds.<br />

JTIMOM Set the timeout parameters for the protocol. The data consist<br />

of four bytes in two groups: the value of the receive timeout<br />

in milliseconds (the low eight bits followed by the high eight<br />

bits) and the value of the transmit timeout (in the same format).<br />

JZOMBOOT<br />

Like JBOOT, but do not execute the program after loading.<br />

JAGENT Send a source byte string to the terminal agent routine and<br />

wait for a reply byte string to be returned.<br />

The data are from a bagent structure (see jagent(5)) and consist<br />

of a one-byte size field followed by a two-byte agent<br />

command code and parameters. Two-byte integers transmitted<br />

as part of an agent command are sent with the high-order<br />

byte first. The response from the terminal is generally<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!