Envoy Application Programming Manual

Table Of Contents
BISYNC Multipoint Tributary Protocol
Envoy Application Programming Manual427159-001
5-37
Programming Examples
Figure 5-7 shows the flow of the polling and selecting operation.
Figure 5-7. BISYNC Multipoint Tributary Polling and Selection
Read Startup Message
Start
041CDT .CDD
Write ? to Home Terminal
Yes
No
Open the Communication
Line (nowait)
Open Home Terminal
(nowait)
Define Polling List
Poll State = Inactive
Sekect State = Active
Line Completed?
Read on
Home Terminal
Complete?
Check for Line Completion
Line Completed?
Was Line Polled or
Selected?
Check for Read on Home
Terminal Completed
Read Home Terminal
(nowait)
Read (Monitor) the Line
(nowait)
Set Poll State to Active
(Changelist)
Send Message to
Supervisor, Set Poll State
to Inactive
If Read on Home Terminal
not Completed, Cancel
Read and Display Message
Read on
Home Terminal
Complete?
No
No
Yes
Yes
No
Polled Selected