Envoy Application Programming Manual

Table Of Contents
TINET Multipoint Supervisor Protocol
Envoy Application Programming Manual427159-001
8-45
Steps of Example Program
Example 8-15. Program Code for TINET Multipoint Supervisor (Page 13 of 13)
! define the line.
CALL DEFINELIST (linefnum,addr^list,addr^size,
num^entries, poll^count,poll^type);
IF < THEN CALL ABEND;
! start the line tasks.
start := 1;
base := @s;
CALL save^return (@ret);
i := -1;
WHILE ( i := i + 1 ) < poll^count DO
BEGIN
! set stack base for task "i".
STACK (base + i * task^space); CODE (SETS);
! start a task.
CALL task ( i );
ret: END;
start := 0;
! poll the network.
CALL poll^line ( -1 );
END; ! start^up.