OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-26
Example 1 in C—Updating a Remote File (in Nowait
Mode)
544 CLOSE ( local_filenum );
545
546 /*********************************************************************/
547 /* Display a message to the terminal that an error occurred or that */
548 /* the program completed successfully. */
549 /*********************************************************************/
550
551 if ( file_update_failed )
552 {
553 printf ("File update error\n");
554 }
555 else
556 {
557 printf ("File update complete\n");
558 }
559
560 } /* End INSERT */
561
562
563 #pragma PAGE "FTAM_IO_CMPL"
564 /**********************************************************************/
565 /* */
566 /* Name: ftam_io_cmpl */
567 /* */
568 /* Description: This procedure processes I/O completions for FTM */
569 /* request and response procedures. It uses the tag */
570 /* field to determine which FTM procedure completed. */
571 /* It takes a specified action depending on the type */
572 /* of request or response. */
573 /* */
574 /* Input: None */
575 /* */
576 /* Outputs: Requests to remote responder */
577 /* Error message to the terminal */
578 /* */
579 /**********************************************************************/
580
581 void ftam_io_cmpl ()
582