OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-150
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1714 }
1715
1716 case ZAPS_VAL_STATUS_DISCARD:
1717 {
1718 /**************************************************************/
1719 /* A status of DISCARD returned on an FTM request indicates */
1720 /* that the association associated with that CEPI has been */
1721 /* lost. Set the appropriate control flag to indicate the */
1722 /* association is lost and call abort_discard to abort the */
1723 /* other association. */
1724 /**************************************************************/
1725
1726 /* Determine which CEPI has been lost. */
1727 if ( cepi == src_cepi )
1728 {
1729 src_con_established = -1;
1730 }
1731 else
1732 {
1733 dst_con_established = -1;
1734 }
1735
1736 abort_discard ();
1737
1738 exit (EXIT_SUCCESS);
1739
1740 }
1741
1742 default: /* unknown status value */
1743
1744 printf ("Unknown status\n");
1745 exit (EXIT_FAILURE);
1746
1747 }
1748
1749 } /*** check_status ***/
1750
1751
1752 #pragma PAGE "CHECK_ERROR"