OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-159
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
2065 , action_result
2066 , (int *) &diag );
2067 if (status != ZAPS_VAL_STATUS_OK)
2068 {
2069 printf ("Abort of the source association failed\n");
2070 }
2071
2072 }
2073
2074 /*******************************************************************/
2075 /* Abort the destination association if it exists. */
2076 /*******************************************************************/
2077
2078 if ( dst_con_established )
2079 {
2080 status = FTM_U_ABORT_REQ_ ( dst_cepi
2081 , action_result
2082 , (int *) &diag );
2083 if ( status != ZAPS_VAL_STATUS_OK)
2084 {
2085 printf ("Abort of the destination association failed\n");
2086 }
2087
2088 }
2089
2090 /*******************************************************************/
2091 /* Discard the API context information for each CEPI. */
2092 /*******************************************************************/
2093
2094 if ( src_cepi != NOCEPI )
2095 {
2096 APS_DISCARD_ ( src_cepi );
2097 }
2098
2099 if ( dst_cepi != NOCEPI )
2100 {
2101 APS_DISCARD_ ( dst_cepi );
2102 }
2103