OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-154
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1870 /*****************************************************************/
1871 /* Retrieve the action result and diagnostic messages for the */
1872 /* P-abort. */
1873 /*****************************************************************/
1874 error = FTM_P_ABORT_IND_ ( cepi
1875 , (long *) &action_result
1876 , (int *) &diag );
1877 check_error ();
1878 check_action_diag ();
1879
1880 /*****************************************************************/
1881 /* Determine which association was aborted and then abort the */
1882 /* other. */
1883 /*****************************************************************/
1884
1885 if ( cepi == src_cepi && dst_con_established )
1886 {
1887 status = FTM_U_ABORT_REQ_ ( dst_cepi
1888 , /* action_result */
1889 , /* diagnostics */ );
1890 check_status ( dst_cepi );
1891 }
1892 else if ( cepi == dst_cepi && src_con_established )
1893 {
1894 status = FTM_U_ABORT_REQ_ ( src_cepi
1895 , /* action_result */
1896 , /* diagnostics */ );
1897 check_status ( src_cepi );
1898 }
1899 }
1900 else
1901 {
1902
1903 /*****************************************************************/
1904 /* The unexpected event was not an abort indication. Issue an */
1905 /* abort for both associations. */
1906 /*****************************************************************/
1907
1908 if ( src_con_established )