OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-14
Reading a File: C Programming Example
423
424 filestore_password.zlen = strlen (FILESTORE_PW);
425memcpy (filestore_password.u_zc.zb, FILESTORE_PW, strlen (FILESTORE_PW) );
426
427 /******************************************************************/
428 /* Request the association. */
429 /******************************************************************/
430
431 status = FTM_INITIALIZE_REQ_ ( (int *) &cepi
432 , (int *) &aplmgr_name
433 , (int *) &responding_appl
434 , wait_mode
435 , (int *) &local_appl
436 , (int *) &local_ae_title
437 , (int *) &remote_ae_title
438 , (int *) &service_class
439 , (int *) &func_units
440 , (int *) &attr_groups
441 , (int *) &contents_type_list
442 , (int *) &initiator_id
443 , (int *) &account
444 , (int *) &filestore_password );
445
446 if ( status != ZAPS_VAL_STATUS_OK )
447 {
448 printf ( "FTM_INITIALIZE_REQ_ FAILED\n" );
449 check_status ();
450 }
451
452 event = ZFTM_VAL_EVT_INITIALIZE_CNF;
453 get_event ( &event );
454
455 error = FTM_INITIALIZE_CNF_ ( cepi
456 , (long *) &state_result
457 , (long *) &action_result
458 , (int *) &local_appl
459 , (int *) &responding_appl
460 , (int *) &remote_ae_title
461 , (int *) &service_class