OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-10
Reading a File: C Programming Example
267
268 printf ( "Remote file read successfully\n" );
269
270 } /* main */
271
272
273 #pragma PAGE "FTAM_REGIME"
274 /*********************************************************************/
275 /* */
276 /* Name: ftam_regime */
277 /* */
278 /* Description: This procedure initiates the association and */
279 /* establishes the FTAM regime. After the request is processed, it */
280 /* terminates the FTAM regime and discards the association. */
281 /* */
282 /*********************************************************************/
283
284 void ftam_regime ()
285
286 {
287
288 /******************************************************************/
289 /* The following sections initialize the various parameters */
290 /* for the FTM_INITIALIZE_REQ_ procedure. */
291 /******************************************************************/
292
293 /******************************************************************/
294 /* Set the wait mode for the association to wait. */
295 /******************************************************************/
296
297 wait_mode = ZAPS_VAL_WAITED;
298
299 /******************************************************************/
300 /* Set the APLMGR name for the association. */
301 /******************************************************************/
302
303 memcpy ( aplmgr_name.u_zc.zb, MANAGER_NAME, strlen (MANAGER_NAME) );
304
305 /******************************************************************/