OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-144
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1480
1481 event = ZFTM_VAL_EVT_ENDGROUP_CNF;
1482 get_event ( &event, src_cepi );
1483
1484
1485 /*******************************************************************/
1486 /* Terminate the source-file FTAM regime. */
1487 /*******************************************************************/
1488
1489 status = FTM_TERMINATE_REQ_ ( src_cepi );
1490 check_status ( src_cepi );
1491
1492 event = ZFTM_VAL_EVT_TERMINATE_CNF;
1493 get_event ( &event, src_cepi );
1494
1495 /*******************************************************************/
1496 /* The charging parameter is used to convey information about costs*/
1497 /* attributed to the account. This parameter should be used only */
1498 /* if the account parameter was used in FTM_INITIALIZE_REQ_. */
1499 /* The information returned in the charging parameter is not used */
1500 /* in this example. */
1501 /*******************************************************************/
1502
1503 error = FTM_TERMINATE_CNF_ ( src_cepi
1504 , (int *) &src_charging );
1505 check_error ();
1506
1507 /*******************************************************************/
1508 /* Terminate the destination-file FTAM regime. */
1509 /*******************************************************************/
1510
1511 status = FTM_TERMINATE_REQ_ ( dst_cepi );
1512 check_status ( dst_cepi );
1513
1514 event = ZFTM_VAL_EVT_TERMINATE_CNF;
1515 get_event ( &event, dst_cepi );
1516
1517 error = FTM_TERMINATE_CNF_ ( dst_cepi
1518 , /* (int *) &dst_charging */ );