FTAM/9000 Programmer's Guide
354 Chapter 10
Example Programs
Former Introduction ... need to change
Former Introduction ... need to change
You can learn from the code examples in this chapter, and pattern your
applications after them. The examples are in the following order.
NOTE For an on-line copy of the example that sets the Ae_dir_name and
P_address, refer to /opt/osi/lib/demos. For on-line copies of all the other
examples, refer to /opt/ftam/demos. (See the README files in both
directories.)
Additionally, you can refer to the on-line file /opt/ftam/demos/makefile for
an example Makefile used to compile the example programs.
Using HLCF Functions
Example
This routine synchronously calls the HLCF functions
ft_fcopy(), ft_fcattributes(), and ft_fdelete(). Additionally,
the routine uses ft_dfdcb() to free dynamically allocated
data control blocks (DCBs).
Managing FTAM Connections
Example
This routine activates ftam_init and synchronously
establishes a connection to a responder. The routine then
releases the connection and deactivates the ftam_init.
Using LLCS Functions
Example
This routine transfers a source file to a destination
directory using LLCS functions.
Setting Ae_dir_dn and
P_address Utility Example
This routine sets the directory distinguished name and
presentation address for the first three examples.
Checking for Errors Example This routine checks the function return value,
result.return_code, result.vendor_code, and diagnostic for
the first three examples.
Common Code Example This routine contains global definitions and common code
used by the first three examples.