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
Asynchronous Line Supervisor Protocol
Envoy Application Programming Manual—427159-001
10-27
Asynchronous Supervisor Programming Example
The example in Example 10-10 demonstrates the sequence involved in sending a break
signal on the line.
The example in Example 10-11
demonstrates the sequence involved in enabling and
disabling a switched line.
Example 10-10. Send a Break Signal
SUBPROC break (duration);
INT duration;
BEGIN
INT old^parm[0:1];
CALL SETMODE (lineno,set^tmout,,,old^parm);
CALL SETMODE (lineno,set^tmout,duration,0);
CALL CONTROL (lineno,snd^brk);
IF < THEN
BEGIN
! handle the error.
END;
CALL SETMODE (lineno,set^tmout,old^parm[0],old^parm[1]);
END;
Example 10-11. Enable and Disable a Switched Line
PROC enable^line;
BEGIN
ENTRY disable^line;
INT type :=1,
type := 0;
disable^line:
CALL CONTROL (lineno,set^cd + type);
IF < THEN
BEGIN
! handle the error.
END;
END;