OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-27
Reading a File: C Programming Example
930 {
931 printf ( "FTM_DATA_END_IND_ FAILED\n" );
932 check_action ();
933 }
934
935 break;
936
937 case ZFTM_VAL_EVT_CANCEL_IND:
938
939
940 /*************************************************************/
941 /* The remote system has cancelled the transfer. Call the */
942 /*indication and response procedures in response to the cancel*/
943 /* request. This action terminates the data-transfer regime. */
944 /*************************************************************/
945
946 error = FTM_CANCEL_IND_ ( cepi
947 , (long *) &action_result
948 , (int *) &diag );
949 if ( error != ZAPS_ERR_OK )
950 {
951 printf ( "FTM_CANCEL_IND_ FAILED\n" );
952 check_error ();
953 }
954
955 status = FTM_CANCEL_RSP_ ( cepi
956 , /* action_result */ );
957
958 if ( status != ZAPS_VAL_STATUS_OK )
959 {
960 printf ( "FTM_CANCEL_RSP_ FAILED\n" );
961 check_status ();
962 }
963 if ( action_result == ZFTM_VAL_ACTION_FAILURE )
964 {
965 printf ( "FTM_CANCEL_IND_ RECEIVED\n" );
966 check_action ();
967 }
968