OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-29
Example 1 in C—Updating a Remote File (in Nowait
Mode)
661 if ( local_read_io_cmplt )
662 {
663 data_transfer ();
664 }
665
666 break;
667
668 case DATAEND_TAG:
669 /****************************************************************/
670 /* All records have been transferred. Terminate the */
671 /* data-transfer regime now. */
672 /****************************************************************/
673
674 status = FTM_TRANSFER_END_REQ_ ( cepi
675 , (long) TRANSFEREND_TAG );
676
677 check_status ();
678 break;
679
680 case ABORT_TAG:
681 /****************************************************************/
682 /* If an abort I/O operation completes, exit the main control */
683 /* loop after returning from this routine. */
684 /****************************************************************/
685
686 remote_file_update_cmplt = TRUE;
687
688 break;
689
690 default:
691 /****************************************************************/
692 /* Display the invalid tag error message and exit. */
693 /****************************************************************/
694
695 printf ("Invalid TAG\n");
696 APS_DISCARD_ ( cepi );
697 exit (EXIT_FAILURE);
698
699 break;