OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-138
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1246
1247 default :
1248 bad_event ( event, src_cepi );
1249 }
1250
1251 }
1252 while ( event == ZFTM_VAL_EVT_DATA_IND );
1253
1254 /*End of file transfer loop */
1255
1256
1257 /*******************************************************************/
1258 /* Issue an FTM_TRANSFER_END_REQ_ call to the source and */
1259 /* destination systems and wait for the respective confirms. This */
1260 /* terminates the data-transfer regime for each association. */
1261 /*******************************************************************/
1262
1263 /*******************************************************************/
1264 /* When a cancel occurs, the data-transfer regime is terminated. */
1265 /* Skip the next section if a cancel took place. */
1266 /*******************************************************************/
1267
1268 if ( event != ZFTM_VAL_EVT_CANCEL_CNF )
1269 {
1270
1271 /*****************************************************************/
1272 /* Terminate the source-file data-transfer regime. */
1273 /*****************************************************************/
1274
1275 status = FTM_TRANSFER_END_REQ_ ( src_cepi );
1276 check_status ( src_cepi );
1277
1278 event = ZFTM_VAL_EVT_TRANSEND_CNF;
1279 get_event ( &event, src_cepi );
1280
1281 error = FTM_TRANSFER_END_CNF_ ( src_cepi
1282 , (long *) &action_result
1283 , (int *) &diag );
1284 check_error ();