OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-133
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1051 /* Call the following procedures to process the confirms returned */
1052 /* by each request. The begin-group and end-group requests do not */
1053 /* have separate confirm functions but, if successful, they */
1054 /* result in confirm events. Call a get_event for each. */
1055 /*******************************************************************/
1056
1057 event = ZFTM_VAL_EVT_BEGINGROUP_CNF;
1058 get_event ( &event, dst_cepi );
1059
1060 event = ZFTM_VAL_EVT_CREATE_CNF;
1061 get_event ( &event, dst_cepi );
1062
1063 error = FTM_CREATE_CNF_ ( dst_cepi
1064 , (long *) &state_result
1065 , (long *) &action_result
1066 , (int *) &initial_attr
1067 , (int *) &diag );
1068 check_error ();
1069 check_action_diag ();
1070 check_state ();
1071
1072 event = ZFTM_VAL_EVT_OPEN_CNF;
1073 get_event ( &event, dst_cepi );
1074
1075 error = FTM_OPEN_CNF_ ( dst_cepi
1076 , (long *) &state_result
1077 , (long *) &action_result
1078 , (int *) &contents_type
1079 , (int *) &diag );
1080 check_error ();
1081 check_action_diag ();
1082 check_state ();
1083
1084 event = ZFTM_VAL_EVT_ENDGROUP_CNF;
1085 get_event ( &event, dst_cepi );
1086
1087 /*******************************************************************/
1088 /* Establish the source-file and destination-file data-transfer */
1089 /* regimes. */