OSI/FTAM Programming Guide

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide528612-001
5-34
Reading a File: C Programming Example
1203 if ( action_result == ZFTM_VAL_ACTION_FAILURE )
1204 {
1205 printf ( "FTM_U_ABORT_IND_ RECEIVED\n" );
1206 check_action ();
1207 }
1208
1209 }
1210 else
1211 if ( event == ZFTM_VAL_EVT_CANCEL_IND )
1212 {
1213 /***************************************************************/
1214 /* Retrieve the action result and diagnostic messages for the */
1215 /* cancel from the responder. */
1216 /***************************************************************/
1217
1218 error = FTM_CANCEL_IND_ ( cepi
1219 , (long *) &action_result
1220 , (int *) &diag );
1221 if ( error != ZAPS_ERR_OK )
1222 {
1223 printf ( "FTM_CANCEL_IND_ FAILED\n" );
1224 check_error ();
1225 }
1226
1227 status = FTM_CANCEL_RSP_ ( cepi
1228 , /* action_result */ );
1229
1230 if ( status != ZAPS_VAL_STATUS_OK )
1231 {
1232 printf ( "FTM_CANCEL_RSP_ FAILED\n" );
1233 check_status ();
1234 }
1235 if ( action_result == ZFTM_VAL_ACTION_FAILURE )
1236 {
1237 printf ( "FTM_CANCEL_IND_ RECEIVED\n" );
1238 check_action ();
1239 }
1240
1241 }