SNAX/CNM Manual

APPENDIX A
SAMPLE PROGRAM: SENDING REQMS AND RECEIVING RECFMS RUS
The sample program serves as a Communications Network Application
(CNMA). As such, it performs the following tasks:
• Defines buffer structures
• Hard codes REQMS and RECFMS RUs
• Opens $SSCP
• Issues a VERB^CONNECT
• Checks the REPLY^CONNECT and saves the CONNECT ID
• Sends REQMS
• Receives RECFMS
• Issues a VERB^STATISTICS to obtain line statistics
• Receives a reply from $SSCP
• Issues a VERB^DISCONNECT
• Checks the REPLY^DISCONNECT and clears the saved CONNECT ID
A-1