OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-31
Example 1 in C—Updating a Remote File (in Nowait
Mode)
739 /********************************************************************/
740
741 switch ( event_code )
742 {
743 case ZFTM_VAL_EVT_INITIALIZE_CNF:
744 init_cnf_open_req ();
745 break;
746 case ZFTM_VAL_EVT_FILEOPEN_CNF:
747 open_cnf_write_req ();
748 break;
749 case ZFTM_VAL_EVT_TRANSEND_CNF:
750 transend_cnf_close_req ();
751 break;
752 case ZFTM_VAL_EVT_FILECLOSE_CNF:
753 close_cnf_terminate_req ();
754 break;
755 case ZFTM_VAL_EVT_TERMINATE_CNF:
756
757 /**************************************************************/
758 /* Retrieve the FTM terminate-confirm data. The charging */
759 /* parameter conveys information related to the cost charged */
760 /* to the account. This parameter is present only if the */
761 /* account parameter was provided on the FTM_INITIALIZE_REQ_ */
762 /* procedure call. Set the flags to indicate that the file */
763 /* update completed successfully. */
764 /**************************************************************/
765
766 error = FTM_TERMINATE_CNF_ ( cepi
767 , /* charging */);
768
769 check_error ();
770
771 remote_file_update_cmplt = TRUE;
772 file_update_failed = FALSE;
773 break;
774 case ZFTM_VAL_EVT_PABORT_IND:
775
776 /****************************************************************/
777 /* Retrieve the FTAM provider-abort indication data. Check */