OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-30
Example 1 in C—Updating a Remote File (in Nowait
Mode)
700
701 } /* end of case */
702
703 } /* ftam_io_cmpl */
704
705
706 #pragma PAGE "FTAM_EVENT_RCVD"
707 /**********************************************************************/
708 /* */
709 /* Name: ftam_event_rcvd */
710 /* */
711 /* Description: This procedure is called whenever an FTAM event is */
712 /* received. It calls APS_STATUS_ to determine which */
713 /* FTAM event has been received. Depending on the */
714 /* event code that is returned, it calls the */
715 /* appropriate FTM confirm or indication procedure. */
716 /* It issues the next FTM request and another */
717 /* event-receive request to receive the next FTAM */
718 /* event. */
719 /* */
720 /* Input: None */
721 /* */
722 /* Output: None */
723 /* */
724 /**********************************************************************/
725
726 void ftam_event_rcvd ()
727
728 {
729 /********************************************************************/
730 /* An event-receive completed. Retrieve the event code from APS. */
731 /********************************************************************/
732
733 error = APS_STATUS_ ( cepi, &event_code );
734
735 check_error ();
736
737 /********************************************************************/
738 /* Process the event that was received. */