OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-35
Example 1 in C—Updating a Remote File (in Nowait
Mode)
896 , (int *) &local_appl
897 , (int *) &responding_appl
898 , /* remote_ae_title */
899 , (int *) &service_class
900 , (int *) &func_units
901 , /* attr_groups */
902 , (int *) &contents_type_list
903 , (int *) &diag );
904
905 check_error ();
906
907 /*********************************************************************/
908 /* Check the state result and the action result. */
909 /*********************************************************************/
910
911 check_action_diag ();
912 if ( state_result == ZFTM_VAL_STATE_FAILURE )
913 {
914 bad_state ();
915 }
916
917 /********************************************************************/
918 /* Check to make sure that the requested functional units have not */
919 /* been negotiated down from what was requested. If the requested */
920 /* functional units are not available, this application ends. */
921 /********************************************************************/
922
923 if ( func_units.zread != ZAPS_VAL_TRUE ||
924 func_units.zwrite != ZAPS_VAL_TRUE ||
925 func_units.zgroup != ZAPS_VAL_TRUE ||
926 func_units.zfileaccess != ZAPS_VAL_TRUE )
927 {
928 printf ( "Functional units unavailable for the association\n" );
929
930 action_result = ZFTM_VAL_ACTION_FAILURE;
931
932 status = FTM_U_ABORT_REQ_ ( cepi
933 , action_result
934 , /* diagnostics */