OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-43
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1208
1209 #pragma PAGE "CLOSE_CNF_TERMINATE_REQ"
1210 /*********************************************************************/
1211 /* */
1212 /* Name: close_cnf_terminate_req */
1213 /* */
1214 /* Description: This procedure is called when a file-close confirm */
1215 /* is received. It calls FTM_FILE_CLOSE_CNF_ and */
1216 /* checks the error status and state result. It then */
1217 /* calls FTM_TERMINATE_REQ_ and returns to the calling */
1218 /* routine. */
1219 /* */
1220 /* Input: File-deselect/close confirm */
1221 /* */
1222 /* Output: Association-termination request to remote responder */
1223 /* */
1224 /*********************************************************************/
1225
1226 void close_cnf_terminate_req ()
1227
1228 {
1229
1230 /******************************************************************/
1231 /* Retrieve the file-close confirm data. */
1232 /******************************************************************/
1233
1234 error = FTM_FILE_CLOSE_CNF_ ( cepi
1235 , &action_result
1236 , /* charging */
1237 , (int *) &diag );
1238
1239 check_error ();
1240
1241 /******************************************************************/
1242 /* Check the action result and display any diagnostic messages. */
1243 /*******************************************************************/
1244
1245 check_action_diag ();
1246