Envoy Application Programming Manual

Table Of Contents
TINET Multipoint Supervisor Protocol
Envoy Application Programming Manual427159-001
8-30
Programming Example
Table 8-10 lists the error codes that can occur during a WRITE operation.
Programming Example
The programming example Example 8-15 shows the following operations:
Formatting, selecting, and sending a write-tutorial-mask message
Polling the network
Formatting, selecting, and sending a write-data message
The example program is a rudimentary credit-checking program.
INPUT (Tutorial Sequence)
Table 8-11 lists the information entered at a TINET terminal:
Table 8-10. WRITE Error Codes
Error Code Description
0 Operation successful
161 Impossible event occurred for line state
162 Operation timed out
166 ENQ received
171 No response or invalid response received
172 Reply not proper for protocol
173 Maximum allowable NAKs received
177 Text overrun
Table 8-11. TINET Terminal Input
ID Light Meaning Data to Be Entered Key
1 Enter account number 1:15 digits Field
2 Enter bank number 4 digits Field
3 Enter expiration date 3:4 digits Field
4 Enter reference number 8 digits Field
5 Enter transaction code 1:2 digits Field
6 Enter amount of transaction 3:7 digits Field
RE-ENTER Re-enter data specified by current ID
LIGHT