OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-145
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
1519
1520 check_error ();
1521
1522 /*******************************************************************/
1523 /* Discard the API context information for the source association. */
1524 /*******************************************************************/
1525
1526 status = APS_DISCARD_ ( src_cepi );
1527 check_status ( src_cepi );
1528
1529 /*******************************************************************/
1530 /* Discard the API context information for the destination */
1531 /* association. */
1532 /*******************************************************************/
1533
1534 status = APS_DISCARD_ ( dst_cepi );
1535 check_status ( dst_cepi );
1536
1537 /*******************************************************************/
1538 /* Display a message to the terminal that the program completed */
1539 /* successfully. */
1540 /*******************************************************************/
1541
1542 printf ( "File move complete\n" );
1543
1544 } /*** MOVEFILE ***/
1545
1546
1547 #pragma PAGE "GET_EVENT"
1548 /*********************************************************************/
1549 /* */
1550 /* Name: get_event */
1551 /* */
1552 /* Description: The get_event procedure gets an available event. */
1553 /* It verifies that the event is the expected event */
1554 /* and that there are no errors associated with it. */
1555 /* If an unexpected event is received, it calls */
1556 /* bad_event to process the error. */
1557 /* */