OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-111
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
193 int src_con_established = FALSE; /* Src association existence flag */
194 int dst_con_established = FALSE; /* Dst association existence flag */
195
196 /**********************************************************************/
197 /* Error-handling variables */
198 /**********************************************************************/
199
200 int status; /* Used for I/O request calls */
201 int error; /* Used for confirm calls */
202 int error_code; /* Returns error code */
203 int error_subcode; /* Returns error subcode */
204
205 /**********************************************************************/
206 /* Variables used by the FTM procedures */
207 /**********************************************************************/
208
209 long state_result; /* Result of regime transition */
210 long action_result; /* Result of requested service */
211 long override; /* Used for the create request */
212 long dst_fadu_op; /* Operation performed on file */
213 long src_start_position; /* Used to step thru src. data */
214 char data_value[MAX_BUF]; /* Buffer used to retrieve data */
215 long src_more_data; /* TRUE = more data to retrieve */
216 long src_next_position; /* Used to step thru src. data */
217
218 /**********************************************************************/
219 /* Structures used by the FTM procedures */
220 /**********************************************************************/
221
222 zaps_ddl_filename_def aplmgr_name;
223 zaps_ddl_appl_addr_def src_appl;
224 zaps_ddl_appl_addr_def dst_appl;
225 zaps_ddl_appl_addr_def local_appl;
226 zaps_ddl_ae_title_def ae_title;
227 zaps_ddl_ae_title_def src_ae_title;
228 zaps_ddl_ae_title_def dst_ae_title;
229 zftm_ddl_func_units_def func_units;
230 zftm_ddl_attr_groups_def attr_groups;
231 zftm_ddl_cntnts_list_def contents_type_list;