OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-116
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
388 func_units.zfilemgmtenhanced = ZAPS_VAL_FALSE;
389 func_units.zgroup = ZAPS_VAL_TRUE;
390 func_units.zfadulock = ZAPS_VAL_FALSE;
391 func_units.zrecovery = ZAPS_VAL_FALSE;
392 func_units.zrestart = ZAPS_VAL_FALSE;
393
394 /*******************************************************************/
395 /* Select the required attribute groups. Since this application */
396 /* reads the source-file attributes, all supported groups are */
397 /* selected. (The private group is not supported.) */
398 /*******************************************************************/
399
400 attr_groups.zstorage = ZAPS_VAL_TRUE;
401 attr_groups.zsecurity = ZAPS_VAL_TRUE;
402 attr_groups.zprivate = ZAPS_VAL_FALSE;
403
404 /*******************************************************************/
405 /* Set up the contents-type-list to request a document of */
406 /* type FTAM-3. */
407 /*******************************************************************/
408
409 contents_type_list.zcount = 1;
410 contents_type_list.zcntnts_type_ispresent = ZAPS_VAL_PRESENT;
411 contents_type_list.zcntnts_type_list[0].zid =
412 ZFTM_VAL_CNTNTSLIST_DOCNAME;
413 contents_type_list.zcntnts_type_list[0].u_zcntntstype.zcntntstype.
414 znum_elements = num_elem;
415 memcpy(contents_type_list.zcntnts_type_list[0].u_zcntntstype.zcntntstype.
416 zobj_id, ftam_doc_type, sizeof (ftam_doc_type) );
417
418
419 /*******************************************************************/
420 /* Initialize the initiator-ID, filestore-password, and account */
421 /* parameters according to the requirements of the remote system. */
422 /* The initialization shown here is for example only. */
423 /*******************************************************************/
424
425 filestore_password.zlen = strlen (password);
426 memcpy ( filestore_password.u_zc.zb, password, filestore_password.zlen);