6100 ADCCP Programming Manual
Appendix B ADCCP Programming Example
Using TAL
069225 Tandem Computers Incorporated B–1
This appendix contains an annotated sample of an application using ADCCP,
illustrating communication between two combined stations. The example includes
most of the requests described in Section 6, “Requests and Responses.” The
annotations include comments on the code as well as cross-references to parts of this
manual where specific topics are described. Annotations are in boldface type.
!MODIFIERS INDICATING THAT REQUEST FAILED OR WAS ABORTED
!
LTM^HOST^STOP = 24,
LTM^HOST^MODESET = LTM^HOST^STOP + 1,
LTM^LINE^MODESET = LTM^HOST^MODESET + 1,
LTM^MAX^RETRIES = LTM^HOST^MODESET + 1,
LTM^STATION^DISABLED = LTM^MAX^RETRIES + 1,
LTM^NO^RESPONSE = 40,
LTM^TEXT^OVERRUN = LTM^NO^RESPONSE + 1,
!
!MODIFIERS INDICATING A MODEM ERROR
!CAUSED REQ ABORT/LINE STATUS
!
LTM^DSR^LOSS = 32,
LTM^TXCLK^LOSS = LTM^DSR^LOSS + 1,
LTM^CARRIER^LOSS = LTM^TXCLK^LOSS + 1,
LTM^CTS^LOSS = LTM^CARRIER^LOSS + 1,
LTM^DSR^TIMEOUT = LTM^CTS^LOSS + 1,
!
!RECEIVETEXT RESPONSE STATUS BYTE VALUES INDICATING
!INPUT FRAME TYPE REC'D
!
LTM^I^FRAME = 00,
LTM^UI^FRAME = 64,
LTM^RIM^SIM^CVD = 65,
LTM^USER0^RCD = 66,
LTM^SARM^DM^CVD = 67,
LTM^UP^RCVD = 68,
LTM^SABM^RCV = 71,
LTM^DISC^RD^CVD = 72,
LTM^USER1^RCD = 74,
LTM^SARME^RCD = 75,
LTM^UA^RCVD = 76,
LTM^SABME^RCD = 79,
LTM^SNRM^RCV = 80,
LTM^FRMR^RSP^RCVD = 81,
LTM^USER2^RCD = 82,
LTM^RSET^RCV = 83,
LTM^XID^RCVD = 87,
LTM^USER3^RCD = 90,
LTM^SNRME^RCD = 91,
LTM^TEST^RCV = 92;