OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-117
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
427
428 initiator_id.zlen = strlen (init_id);
429 memcpy ( initiator_id.u_zc.zb, init_id, initiator_id.zlen);
430
431 account.zlen = strlen (charge_account);
432 memcpy ( account.u_zc.zb, charge_account, account.zlen);
433
434 status = FTM_INITIALIZE_REQ_ ( (int *) &src_cepi
435 , (int *) &aplmgr_name
436 , (int *) &src_appl
437 , wait_mode
438 , (int *) &local_appl
439 , (int *) &ae_title
440 , (int *) &src_ae_title
441 , /*service_class defaults to transfer*/
442 , (int *) &func_units
443 , (int *) &attr_groups
444 , (int *) &contents_type_list
445 , (int *) &initiator_id
446 , (int *) &account
447 , (int *) &filestore_password );
448
449 check_status ( src_cepi );
450
451 event = ZFTM_VAL_EVT_INITIALIZE_CNF;
452 get_event ( &event, src_cepi );
453
454 /*******************************************************************/
455 /* The optional output parameters for local_appl, src_appl, and */
456 /* src_ae_title are supplied to the confirm procedure for example */
457 /* only. The application returns the OSI addresses in the */
458 /* local_appl and src_appl parameters, and the AE title of the */
459 /* source responder in the src_ae_title parameter. */
460 /*******************************************************************/
461
462 error = FTM_INITIALIZE_CNF_ ( src_cepi
463 , (long *) &state_result
464 , (long *) &action_result
465 , (int *) &local_appl