DCE for the HP e3000 (B3821-90003)

60 Chapter7
Programming with RPC 1.2.1 on MPE/iX
* since this client uses the explicit binding method.
*/
remote_sleep(bh, sleep_time);
/* CATCH_ALL --
*
* The CATCH_ALL macro denotes the end of a TRY block. If an exception
* occurs in any of the calls within the TRY block, control will pass to
* the CATCH_ALL block where the exception is dealt with. This client
* will simply inform you that something went wrong; in the string_conv
* and later sample applications the client will do something
* intelligent with the exception.
*/
} CATCH_ALL {
/*
* We caught an exception in the client stub code. Inform the user.
*/
PRINT_FUNC(PRINT_HANDLE, "Caught an exception!\n");
exit(1);
}
/* ENDTRY --
*
* The ENDTRY macro is required by the exception implementation to
* terminate a TRY block.
*/
ENDTRY;
/*
* No status information was passed back. If the call failed, the RPC
* runtime will have raised an exception and caused an exit.
*/
PRINT_FUNC(PRINT_HANDLE, "Returned from remote_sleep(%d)\n", sleep_time);
exit(0);
}