OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-118
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
466 , (int *) &src_appl
467 , (int *) &src_ae_title
468 , /* src_service_class */
469 , (int *) &src_func_units
470 , (int *) &src_attr_groups
471 , (int *) &src_contents_type_list
472 , (int *) &diag );
473
474 check_error ();
475 check_action_diag ();
476 check_state ();
477
478 /********************************************************************/
479 /* The source association has been established. Set the flag used in*/
480 /* error processing to determine whether a source association exists.*/
481 /********************************************************************/
482
483 src_con_established = TRUE;
484
485 /*******************************************************************/
486 /* Verify that the functional units have not been negotiated down */
487 /* from what was requested. If the requested functional units are */
488 /* not available, abort the association and exit. Additional */
489 /* application-specific error handling or recovery could be */
490 /* implemented if required by an application. */
491 /*******************************************************************/
492
493 if ( src_func_units.zread != ZAPS_VAL_TRUE ||
494 src_func_units.zfilemgmt != ZAPS_VAL_TRUE ||
495 src_func_units.zgroup != ZAPS_VAL_TRUE )
496 {
497 printf ("Functional units unavailable on source association\n" );
498 abort_discard ();
499 exit(EXIT_SUCCESS);
500 }
501
502 /*******************************************************************/
503 /* Verify that the attribute groups have not been negotiated down */
504 /* from what was requested. If the requested attribute groups are */