OSF DCE Application Development Guide--Core Components

OSF DCE Application Development Guide—Core Components
*/
rpc_ns_mgmt_free_codesets (&arr, &status);
CHECK_STATUS(TRUE, "rpc_ns_mgmt_free_codeset", status, expected);
sigemptyset(&sigset);
sigaddset(&sigset, SIGINT);
if (pthread_signal_to_cancel_np(&sigset, &this_thread) != 0)
{
printf("pthread_signal_to_cancel_np failed\n");
exit(1);
}
TRY
{
server_pid = getpid();
printf("Listening for remote procedure calls...\n");
rpc_server_listen (
rpc_c_listen_max_calls_default,
&status );
CHECK_STATUS(TRUE, "rpc_server_listen", status, expected);
/*
* Remove code set attributes from namespace on return.
*/
rpc_ns_mgmt_remove_attribute (
rpc_c_ns_syntax_default,
(unsigned_char_p_t)nsi_entry_name,
rpc_c_attr_codesets,
&status );
CHECK_STATUS(TRUE, "rpc_ns_mgmt_remove_attribute", status, \
expected);
rpc_ns_binding_unexport (
rpc_c_ns_syntax_default,
(unsigned_char_p_t)nsi_entry_name,
cs_test_v1_0_s_ifspec,
(uuid_vector_p_t)NULL,
&status );
CHECK_STATUS(TRUE, "rpc_ns_binding_unexport", status, expected);
rpc_ep_unregister (
cs_test_v1_0_s_ifspec,
binding_vector,
NULL,
&status );
CHECK_STATUS(TRUE, "rpc_ep_unregister", status, expected);
rpc_binding_vector_free (
15 20 Tandem Computers Incorporated 124245