OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-141
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1363 /* in response to each request. The begin-group and end-group */
1364 /* requests do not have separate confirm procedures but, if */
1365 /* successful, they result in confirm events. Call get-event */
1366 /* for each. */
1367 /*******************************************************************/
1368
1369 event = ZFTM_VAL_EVT_BEGINGROUP_CNF;
1370 get_event ( &event, dst_cepi );
1371
1372 event = ZFTM_VAL_EVT_CLOSE_CNF;
1373 get_event ( &event, dst_cepi );
1374
1375 error = FTM_CLOSE_CNF_ ( dst_cepi
1376 , (long *) &action_result
1377 , (int *) &diag );
1378 check_error ();
1379 check_action_diag ();
1380
1381 event = ZFTM_VAL_EVT_CHANGEATTR_CNF;
1382 get_event ( &event, dst_cepi );
1383
1384 error = FTM_CHANGE_ATTRIB_CNF_ ( dst_cepi
1385 , (long *) &action_result
1386 , (int *) &change_attr
1387 , (int *) &diag );
1388 check_error ();
1389 check_action_diag ();
1390
1391 event = ZFTM_VAL_EVT_DESELECT_CNF;
1392 get_event ( &event, dst_cepi );
1393
1394 /*******************************************************************/
1395 /* The charging parameter is used to convey information about costs*/
1396 /* attributed to the account. This parameter should be used only */
1397 /* if the account parameter was used in FTM_CREATE_REQ_. The */
1398 /* information returned in the charging parameter is not used in */
1399 /* this example. */
1400 /*******************************************************************/
1401