OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-44
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1247 /******************************************************************/
1248 /* The file has been closed. The association can be terminated. */
1249 /******************************************************************/
1250
1251 status = FTM_TERMINATE_REQ_ ( cepi
1252 , (long) TERMINATE_TAG );
1253
1254 check_status ();
1255
1256 } /* close_cnf_terminate_req */
1257
1258
1259 #pragma PAGE "DATA_TRANSFER"
1260 /*********************************************************************/
1261 /* */
1262 /* Name: data_transfer */
1263 /* */
1264 /* Description: This procedure is called when a Guardian read or */
1265 /* FTM data request completes. It determines whether */
1266 /* another data request can be sent to the remote file, */
1267 /* or whether the data must be held until the I/O */
1268 /* completion for the previous call to FTM_DATA_REQ_ */
1269 /* or the Guardian read request is received. */
1270 /* */
1271 /* Input: None */
1272 /* */
1273 /* Output: File records being sent to remote responder */
1274 /* */
1275 /*********************************************************************/
1276
1277 void data_transfer ()
1278
1279 {
1280
1281 /*******************************************************************/
1282 /*When all records have been sent and there are no outstanding I/O */
1283 /*operations, notify the remote system that all data has been sent.*/
1284 /*******************************************************************/
1285