Envoy Application Programming Manual

Table Of Contents
TINET Multipoint Supervisor Protocol
Envoy Application Programming Manual427159-001
8-11
Polling Type
Figure 8-3 shows the TINET multipoint supervisor continuous poll sequence.
If a polled station responds with text, the READ completes with the line in the READ
state and an error 0 (operation successful). Along with the text message, the polled
station returns a message control word (MCW), which contains the polled station’s entry
number, to the line buffer of the application process (for more information, see Message
Formats on page 8-18).
If a polled terminal fails to respond to the poll or if an incorrect response is received, the
READ completes with an error indication; the entry number of the terminal in error is
returned in the message control word.
If text is received or if an error occurs, the next terminal following the terminal that
caused the polling to stop is the first terminal to be polled when polling is resumed.
The following example shows how to specify continuous polling:
Figure 8-3. TINET Multipoint Supervisor Continuous Poll
Example 8-3. Continuous Polling
poll^type := 0;
CALL DEFINELIST (linefnum,addr^list,addr^size,num^entries,
poll^count,poll^type);
IF < THEN ...
CALL READ (linefnum, linebuf,...);
IF < THEN ...
044CDT .CDD
CALL READ...
CALL OPEN...
CALL DEFINELIST...
Poll List Entry
pn-1
Poll List Entry 0
Poll List Entry 1
EOT
EOT
EOT