OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-22
Example 1 in C—Updating a Remote File (in Nowait
Mode)
388 /**********************************************************************/
389
390 contents_type_list.zcount = 1;
391 contents_type_list.zcntnts_type_ispresent = ZAPS_VAL_PRESENT;
392 contents_type_list.zcntnts_type_list[0].zid= ZFTM_VAL_CNTNTSLIST_DOCNAME;
393 contents_type_list.zcntnts_type_list[0].u_zcntntstype.zcntntstype.
394 znum_elements = 5;
395 memcpy ( contents_type_list.zcntnts_type_list[0].u_zcntntstype.
396 zcntntstype.zobj_id, document_type, sizeof (document_type) );
397
398 /**********************************************************************/
399 /* Establish the association with the remote FTAM responder. Do this */
400 /* by calling the FTM_INITIALIZE_REQ_ procedure. In this example, */
401 /* default values are used for many parameters. For example, the */
402 /* default values 0, for AE qualifier, and [1,3,9999,1,7], for */
403 /* AP title, are used in the ae_title parameter, and 1 and */
404 /* [1,3,9999,1,7], respectively, are used in the remote_ae_title */
405 /* parameter. The remote system, however, might require other */
406 /* values for certain parameters (e.g., ae_title, remote_ae_title, */
407 /* initiator_id, filestore_password, and so on). */
408 /**********************************************************************/
409
410 status = FTM_INITIALIZE_REQ_ ( (int *) &cepi
411 , (int *) &aplmgr_name
412 , (int *) &responding_appl
413 , wait_mode
414 , (int *) &local_appl
415 , /* ae_title */
416 , /* remote_ae_title */
417 , (int *) &service_class
418 , (int *) &func_units
419 , /* attr_groups - defaults to kernel only */
420 , (int *) &contents_type_list
421 , /* initiator_id - defaults to spaces */
422 , /* account - defaults to spaces */
423 , /* filestore_password - defaults to spaces*/
424 , (long) INITIALIZE_TAG );
425
426 if ( status != ZAPS_VAL_STATUS_OK )