OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-132
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1012 /* file. */
1013 /*******************************************************************/
1014
1015 process_mode.zread = ZAPS_VAL_FALSE;
1016 process_mode.zinsert = ZAPS_VAL_FALSE;
1017 process_mode.zreplace = ZAPS_VAL_TRUE;
1018 process_mode.zextend = ZAPS_VAL_FALSE;
1019 process_mode.zerase = ZAPS_VAL_FALSE;
1020
1021 /*******************************************************************/
1022 /* Initialize the threshold for the begin-group request to specify */
1023 /* that both services (create and open) must be successful for the */
1024 /* group to succeed. */
1025 /*******************************************************************/
1026
1027 threshold = 2;
1028
1029 status = FTM_BEGIN_GROUP_REQ_ ( dst_cepi
1030 , threshold );
1031 check_status ( dst_cepi );
1032
1033 status = FTM_CREATE_REQ_ ( dst_cepi
1034 , (int *) &initial_attr
1035 , override
1036 , (int *) &filestore_password
1037 , (int *) &requested_access
1038 , (int *) &access_passwords
1039 , (int *) &account );
1040 check_status ( dst_cepi );
1041
1042 status = FTM_OPEN_REQ_ ( dst_cepi
1043 , (int *) &process_mode
1044 , (int *) &contents_type );
1045 check_status ( dst_cepi );
1046
1047 status = FTM_END_GROUP_REQ_ ( dst_cepi );
1048 check_status ( dst_cepi );
1049
1050 /*******************************************************************/