OSI/FTAM Programming Guide

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide528612-001
5-21
Reading a File: C Programming Example
696 event = ZFTM_VAL_EVT_ENDGROUP_CNF;
697 get_event ( &event );
698
699
700 data_transfer_regime ();
701
702
703 /******************************************************************/
704 /* Terminate the file-selection and file-open regimes. */
705 /******************************************************************/
706
707
708 /******************************************************************/
709 /* Issue a close-and-deselect request for the remote file */
710 /******************************************************************/
711
712 /******************************************************************/
713 /* Initialize the threshold for the begin-group request to */
714 /* indicate that both services (close and deselect) must be */
715 /* successful for the group to succeed. */
716 /******************************************************************/
717
718 threshold = 2;
719
720 status = FTM_BEGIN_GROUP_REQ_ ( cepi, threshold );
721 if ( status != ZAPS_VAL_STATUS_OK )
722 {
723 printf ( "FTM_BEGIN_GROUP_REQ_ FAILED\n" );
724 check_status ();
725 }
726
727 status = FTM_CLOSE_REQ_ ( cepi );
728 if ( status != ZAPS_VAL_STATUS_OK )
729 {
730 printf ( "FTM_CLOSE_REQ_ FAILED\n" );
731 check_status ();
732 }
733
734 status = FTM_DESELECT_REQ_ ( cepi );