OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-42
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1169 /*********************************************************************/
1170
1171 void transend_cnf_close_req ()
1172
1173 {
1174
1175 /*****************************************************************/
1176 /* Retrieve the transfer-end confirm data. */
1177 /*****************************************************************/
1178
1179 error = FTM_TRANSFER_END_CNF_ ( cepi
1180 , &action_result
1181 , (int *) &diag );
1182
1183 check_error ();
1184
1185 /******************************************************************/
1186 /* Check the action result and display any diagnostic messages. */
1187 /******************************************************************/
1188
1189 check_action_diag ();
1190
1191 /******************************************************************/
1192 /* The transfer is now complete. Deselect and close the */
1193 /* remote file. The delete-action parameter specifies closing the */
1194 /* file without deleting it. The FTM_FILE_CLOSE_REQ_ handles */
1195 /* both deselecting and closing the file. */
1196 /*******************************************************************/
1197
1198 delete_action = ZFTM_VAL_CLOSE_NODELETE;
1199
1200 status = FTM_FILE_CLOSE_REQ_ ( cepi
1201 , delete_action
1202 , (long) FILECLOSE_TAG );
1203
1204 check_status ();
1205
1206 } /* transend_cnf_close_req */
1207