OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-109
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
115 , FTM_DATA_END_REQ_ \
116 , FTM_DATA_END_IND_ \
117 , FTM_TRANSFER_END_REQ_ \
118 , FTM_TRANSFER_END_CNF_ \
119 , FTM_TERMINATE_REQ_ \
120 , FTM_TERMINATE_CNF_ \
121 , FTM_CANCEL_IND_ \
122 , FTM_CANCEL_REQ_ \
123 , FTM_CANCEL_RSP_ \
124 , FTM_CANCEL_CNF_ \
125 , FTM_P_ABORT_IND_ \
126 , FTM_U_ABORT_IND_ \
127 , FTM_U_ABORT_REQ_ \
128 , APS_INITIALIZE_ \
129 , APS_STATUS_ \
130 , APS_EVENT_RECEIVE_ \
131 , APS_DISCARD_ ) "
132 #pragma list
133
134 /**********************************************************************/
135 /* Global data declarations */
136 /**********************************************************************/
137
138 /**********************************************************************/
139 /* Environment-specific fields */
140 /* You will need to change these fields to reflect your FTAM */
141 /* environment. src_filename and dst_filename must be valid file */
142 /* names for the respective source and remote systems. In this */
143 /* example, src-file and dst_file are Guardian files. */
144 /**********************************************************************/
145
146 #define local_appl_name "APPL1"
147 #define src_appl_name "APPL2"
148 #define dst_appl_name "APPL3"
149 #define init_id "initid"
150 #define password "aaa"
151 #define charge_account "12345"
152 #define manager_name "$APMGR "
153 #define src_filename "$VOLUME.SUBVOL.SRCFILE"