OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-120
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
544 func_units.zwrite = ZAPS_VAL_TRUE;
545 func_units.zfilemgmt = ZAPS_VAL_TRUE;
546 func_units.zfilemgmtenhanced = ZAPS_VAL_TRUE;
547 func_units.zgroup = ZAPS_VAL_TRUE;
548
549 /*******************************************************************/
550 /* Set the wait mode for the association to waited. */
551 /*******************************************************************/
552
553 wait_mode = ZAPS_VAL_WAITED;
554
555 status = FTM_INITIALIZE_REQ_ ( (int *) &dst_cepi
556 , (int *) &aplmgr_name
557 , (int *) &dst_appl
558 , wait_mode
559 , (int *) &local_appl
560 , (int *) &ae_title
561 , (int *) &dst_ae_title
562 , /* service_class defaults to transfer*/
563 , (int *) &func_units
564 , (int *) &attr_groups
565 , (int *) &contents_type_list
566 , (int *) &initiator_id
567 , (int *) &account
568 , (int *) &filestore_password );
569
570 check_status ( dst_cepi );
571
572 event = ZFTM_VAL_EVT_INITIALIZE_CNF;
573 get_event ( &event, dst_cepi );
574
575 error = FTM_INITIALIZE_CNF_ ( dst_cepi
576 , (long *) &state_result
577 , (long *) &action_result
578 , (int *) &local_appl
579 , (int *) &dst_appl
580 , (int *) &dst_ae_title
581 , /* dst_service_class */
582 , (int *) &dst_func_units