OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-139
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1285 check_action_diag ();
1286
1287 /*****************************************************************/
1288 /* Terminate the destination-file data-transfer regime. */
1289 /*****************************************************************/
1290
1291 status = FTM_TRANSFER_END_REQ_ ( dst_cepi );
1292 check_status ( dst_cepi );
1293
1294 event = ZFTM_VAL_EVT_TRANSEND_CNF;
1295 get_event ( &event, dst_cepi );
1296
1297 error = FTM_TRANSFER_END_CNF_ ( dst_cepi
1298 , (long *) &action_result
1299 , (int *) &diag );
1300 check_error ();
1301 check_action_diag ();
1302 }
1303
1304
1305 /*******************************************************************/
1306 /* Terminate the destination-file file-open and file-selection */
1307 /* regimes. */
1308 /*******************************************************************/
1309
1310 /*******************************************************************/
1311 /* Close the file on the destination system, change the attributes,*/
1312 /* and then deselect the file. These three primitives must also */
1313 /* be grouped since the transfer class was negotiated for the */
1314 /* association. */
1315 /*******************************************************************/
1316
1317 /*******************************************************************/
1318 /* Set the following parameters so the destination file attributes */
1319 /* match the source file. */
1320 /*******************************************************************/
1321
1322 change_attr.zattrsarepresent = ZAPS_VAL_PRESENT;
1323