Envoy Application Programming Manual
Table Of Contents
- What’s New in This Manual
- About This Manual
- 1 Application Programming With Envoy
- 7 ADM-2 Multipoint Supervisor Protocol
- 8 TINET Multipoint Supervisor Protocol
- 9 Burroughs Point-To-Point Protocol
- 10 Asynchronous Line Supervisor Protocol
- A ASCII Character Set
- B ASCII to EBCDIC Code Conversion
- C File-System Procedures
- D Statistics Messages
- E S-Series Changes to Envoy
- NonStop™ Himalaya S-Series Server Architecture
- G-Series Migration Considerations
- CBSENSEON and CFSENSEON Modifiers
- LEOTRESYN and NOLEOTRESYN Modifiers
- Treatment of Characters After the Termination Character
- Number of SYN Characters
- DTR Drop
- Reporting of Parity Error
- Half-Duplex Support for Asynchronous Lines
- Controller Replacement
- SYSGEN and COUP
- Unit Numbers
- FDX Line Changes
- No Support for Auto-Call Unit
- Glossary
- Index
BISYNC Multipoint Tributary Protocol
Envoy Application Programming Manual—427159-001
5-43
Programming Examples
Example 5-15. Program Code for BISYNC Multipoint Tributary (Page 4 of 7)
sbuf ’:=’ "FROM " -> @s;
s := IF $ALPHA (source.<8:15>) THEN source.<8:15>
ELSE source.<8:15> LOR %60; ! convert binary to
! ASCII.
s[1] := ":";
s[2] ’:=’ [" "] & array FOR length -> @s;
! display the message.
done := 0;
WHILE NOT done DO
BEGIN
CALL WRITE (termfnum, buf, @s ’-’ @sbuf);
CALL AWAITIO (termfnum);
IF = THEN done := 1
ELSE
IF NOT FILEERROR (termfnum)
THEN CALL ABEND; ! fatal.
END
END; ! write^term.
! This procedure is used to format and send a message to the
! supervisor when the station is polled.
!
! The "array" passed to "send" is of the form:
!
! <d>,<text>
!
! <d> = destination {S,0:3}, <text> is message to be sent.
!
! When the message is successfully transmitted, the
! CHANGELIST
! procedure is called to set the station’s poll state to
! "inactive."
PROC send (array, length);
STRING .array;
INT length;
BEGIN
STRING .s;