OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-22
Reading a File: C Programming Example
735 if ( status != ZAPS_VAL_STATUS_OK )
736 {
737 printf ( "FTM_DESELECT_REQ_ FAILED\n" );
738 check_status ();
739 }
740
741 error = FTM_END_GROUP_REQ_ ( cepi );
742 if ( error != ZAPS_ERR_OK )
743 {
744 printf ( "FTM_END_GROUP_REQ_ FAILED\n" );
745 check_error ();
746 }
747
748 /******************************************************************/
749 /* Call the following procedures to process the confirms returned */
750 /* in response to each request. The begin-group and end-group */
751 /* requests do not have separate confirm procedures, but they do */
752 /* have confirms returned. Call get_event for each. */
753 /******************************************************************/
754
755 event = ZFTM_VAL_EVT_BEGINGROUP_CNF;
756 get_event ( &event );
757
758 event = ZFTM_VAL_EVT_CLOSE_CNF;
759 get_event ( &event );
760 error = FTM_CLOSE_CNF_ ( cepi
761 , (long *) &action_result
762 , (int *) &diag );
763 if ( error != ZAPS_ERR_OK )
764 {
765 printf ( "FTM_CLOSE_CNF_ FAILED\n" );
766 check_error ();
767 }
768 if ( action_result == ZFTM_VAL_ACTION_FAILURE )
769 {
770 printf ( "FTM_CLOSE_CNF_ FAILED\n" );
771 check_action ();
772 }
773