OSI/FTAM Programming Guide

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide528612-001
5-12
Reading a File: C Programming Example
345 /******************************************************************/
346 /* Set the remote AE title for the association. */
347 /******************************************************************/
348
349 remote_ae_title.zae_title_type = ZAPS_VAL_AE_TITLE_FORMAT2;
350 remote_ae_title.zae_title_format2.zae_qualifier_ispresent
351 = ZAPS_VAL_PRESENT;
352 remote_ae_title.zae_title_format2.zae_qualifier
353 = (long) REMOTE_AE_QUALIFIER;
354
355 remote_ae_title.zae_title_format2.zap_title.znum_elements = NUM_ELEM;
356 memcpy ( remote_ae_title.zae_title_format2.zap_title.zobj_id,
357 REMOTE_AP_TITLE, NUM_ELEM * sizeof (int) );
358
359 /******************************************************************/
360 /* Select the service class required. */
361 /******************************************************************/
362
363 service_class.zunconstrained = ZAPS_VAL_FALSE;
364 service_class.zmgmt = ZAPS_VAL_FALSE;
365 service_class.ztransfer = ZAPS_VAL_TRUE;
366 service_class.zxfermgmt = ZAPS_VAL_FALSE;
367 service_class.zaccess = ZAPS_VAL_FALSE;
368
369 /******************************************************************/
370 /* Select the file attribute groups required. Because neither the */
371 /* storage nor security attributes of the remote file are required*/
372 /* and private attributes are not supported, set them to FALSE. */
373 /******************************************************************/
374
375 attr_groups.zstorage = ZAPS_VAL_FALSE;
376 attr_groups.zsecurity = ZAPS_VAL_FALSE;
377 attr_groups.zprivate = ZAPS_VAL_FALSE;
378
379 /******************************************************************/
380 /* Select the functional units required. */
381 /******************************************************************/
382
383 func_units.zread = ZAPS_VAL_TRUE;