OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-34
Example 1 in C—Updating a Remote File (in Nowait
Mode)
857 status = APS_EVENT_RECEIVE_ ( cepi
858 , /* WAIT_FOREVER */
859 , (long) EVENTREC_TAG );
860
861 check_status ();
862 }
863
864 } /* ftam_event_rcvd */
865
866
867 #pragma PAGE "INIT_CNF_OPEN_REQ"
868 /*********************************************************************/
869 /* */
870 /* Name: init_cnf_open_req */
871 /* */
872 /* Description: This procedure is called when an initialize confirm */
873 /* is received. It calls FTM_INITIALIZE_CNF_ and */
874 /* checks the error status and state result. It then */
875 /* initializes parameters for the call to */
876 /* FTM_FILE_OPEN_REQ_, makes the call, and returns */
877 /* to the calling routine. */
878 /* */
879 /* Input: Initialize confirm */
880 /* */
881 /* Output: File-select/open request to remote responder */
882 /* */
883 /*********************************************************************/
884
885 void init_cnf_open_req ()
886
887 {
888
889 /********************************************************************/
890 /* Retrieve the FTAM initialize-confirm data. */
891 /********************************************************************/
892
893 error = FTM_INITIALIZE_CNF_ ( cepi
894 , &state_result
895 , &action_result