OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-143
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1441 status = FTM_END_GROUP_REQ_ ( src_cepi );
1442 check_status ( src_cepi );
1443
1444 /*******************************************************************/
1445 /* Call the following procedures to process the confirms returned */
1446 /* in response to each request. The begin-group and end-group */
1447 /* requests do not have separate confirm functions but, if */
1448 /* successful, they result in confirm events. Call get-event */
1449 /* for each. */
1450 /*******************************************************************/
1451
1452 event = ZFTM_VAL_EVT_BEGINGROUP_CNF;
1453 get_event ( &event, src_cepi );
1454
1455 event = ZFTM_VAL_EVT_CLOSE_CNF;
1456 get_event ( &event, src_cepi );
1457 error = FTM_CLOSE_CNF_ ( src_cepi
1458 , (long *) &action_result
1459 , (int *) &diag );
1460 check_error ();
1461 check_action_diag ();
1462
1463 event = ZFTM_VAL_EVT_DELETE_CNF;
1464 get_event ( &event, src_cepi );
1465
1466 /*******************************************************************/
1467 /* The charging parameter is used to convey information about costs*/
1468 /* attributed to the account. This parameter should be used only */
1469 /* if the account parameter was used in FTM_SELECT_REQ_. The */
1470 /* information returned in the charging parameter is not used in */
1471 /* this example. */
1472 /*******************************************************************/
1473
1474 error = FTM_DELETE_CNF_ ( src_cepi
1475 , (long *) &action_result
1476 , (int *) &src_charging
1477 , (int *) &diag );
1478 check_error ();
1479 check_action_diag ();