24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TSK. [CALLI 177]<br />

22.174 TSK. [CALLI 177]<br />

FUNCTION<br />

. .<br />

Performs miscellaneous functions for network nodes. This monitor call<br />

can be used by applications that wish to perform non-blocking connects<br />

and disconnects. Also, it can be used by applications translating<br />

ANF-IO protocol into another protocol. These applications usually<br />

require more control over the connect message than that provided by<br />

the standard LOOKUP/ENTER sequence.<br />

The TSK. monitor call is an alternative to using the LOOKUP/ENTER<br />

method for opening/defining network links. Once the link enters the<br />

run state (.TKSOK), the norma: OUT and IN monitor calls can be used to<br />

send or receive data over the network link. The TSK device cannot be<br />

designated as an MPX-controlled device, but asynchronous I/O can be<br />

performed.<br />

Refer to Chapter 5 for more information about using the TSK.<br />

call.<br />

monitor<br />

CALLING SEQUENCE<br />

MOVE ac, [XWD length,addr]<br />

TSK. ac,<br />

error return<br />

skip return<br />

addr: EXP func-code ; . TKAFN<br />

EXP channo ;.TKACH<br />

EXP argl ; . TK<strong>AA</strong>l<br />

EXP arg2 ; . TK<strong>AA</strong>2<br />

EXP arg3 ; . TK<strong>AA</strong>3<br />

In the calling sequence, the program supplies the following variables:<br />

o<br />

function is one of the function codes listed below.<br />

o channo is the I/O channel number on which the device TSK has<br />

been opened.<br />

Each argument is an argument for the specified function code.<br />

Most arguments will be pointers to Network<br />

Descriptors (NPDS), having the following format:<br />

Process<br />

XWD<br />

length,addr<br />

o length is the length of the NPD (must be at least 3).<br />

o<br />

addr is the location of the NPD.<br />

Associated with each task link are two processes: the local process<br />

and remote process. The processes are named by the NPD. The format<br />

of the NPD is:<br />

Offset<br />

o<br />

1<br />

2<br />

Symbol<br />

.TKNND<br />

.TKNLN<br />

.TKNPN<br />

Meaning<br />

Node number (-l implies any node, but is not valid<br />

when used in the remote passive NPD) .<br />

Length of ASCII process name that follows<br />

of characters) .<br />

First word of the ASCII process name.<br />

(number<br />

22-453

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

Saved successfully!

Ooh no, something went wrong!