OSI/AS Programming Manual
Appendix E Sample Programs
056783 Tandem Computers Incorporated E–1
This appendix presents sample programs that illustrate the use of the APS procedures.
They are simplified to show more clearly the sequence in which applications should
call the procedures; your application programs will typically perform more complex
operations.
Each sample program is presented first in TAL and then in C. If you are copying the
TAL examples to use as the basis for one or more of your own application modules,
remember that you must change the volume and subvolume names of all the files to
properly reflect your application environment.
Source code files for the examples described in this appendix are provided as part of
the OSI/AS software. They reside (by default) in the volume and subvolume
$SYSTEM.ZOSIAS. Note that the examples are subject to change in future releases.
Example 1 uses the Session Layer only. This example can run over either session
version 1 or session version 2.
Example 2 uses ACSE to make and release connections, and uses the Presentation
Layer to negotiate presentation context and to transfer ASN.1-encoded data using that
presentation context. It also uses basic concatenation. This example can run over
either session version 1 or session version 2.