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 Point-To-Point Protocol
Envoy Application Programming Manual—427159-001
3-47
Line Bid
Example 3-18. Program Code for read^text and write^text (Page 3 of 5)
! This procedure checks the home terminal for a completion.
! If a completion was made, another WRITEREAD is issued.
INT PROC check^term ( text );
 INT .text;
 BEGIN
  INT countread := 0,
  error;
 INT(32) wait^type;
 wait^type := IF linestate = writestate THEN -1D ELSE 0D;
  CALL AWAITIO ( termfnum,, countread,, wait^type );
  CALL FILEINFO( termfnum, error );
  IF error <> 40 THEN ! operation completed.
  BEGIN
  ! move term data to text buffer.
    text ':=' termbuf FOR ((countread + 1) / 2);
  ! issue another WRITEREAD.
  termbuf := "? ";
  CALL WRITEREAD ( termfnum, termbuf, 1, 72 );
    RETURN countread;
  END;
 END; ! check^term.










