OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-121
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
583 , (int *) &dst_attr_groups
584 , (int *) &dst_contents_type_list
585 , (int *) &diag );
586
587 check_error ();
588 check_action_diag ();
589 check_state ();
590
591 /*******************************************************************/
592 /* The destination association has been established. Set the flag */
593 /* used in error processing to determine whether an association */
594 /* exists. */
595 /*******************************************************************/
596
597 dst_con_established = TRUE;
598
599 /*******************************************************************/
600 /* Verify that the functional units have not been negotiated down */
601 /* from what was requested. If the requested functional units are */
602 /* not available, abort both associations and exit. Additional */
603 /* application-specific error handling or recovery could be */
604 /* implemented if required by an application. */
605 /*******************************************************************/
606 if ( dst_func_units.zwrite != ZAPS_VAL_TRUE ||
607 dst_func_units.zgroup != ZAPS_VAL_TRUE ||
608 dst_func_units.zfilemgmt != ZAPS_VAL_TRUE ||
609 dst_func_units.zfilemgmtenhanced != ZAPS_VAL_TRUE )
610 {
611 printf ("Functional units unavailable on destination association\n" );
612
613 abort_discard ();
614 exit(EXIT_SUCCESS);
615 }
616
617 /*******************************************************************/
618 /* Verify that the attribute groups have not been negotiated down */
619 /* from what was requested. If the requested attribute groups are */
620 /* not available, abort both associations and exit. Additional */
621 /* application-specific error handling or recovery could be */