OSF DCE Application Development Guide--Core Components

OSF DCE Application Development Guide—Core Components
/*
* try another binding
*/
rpc_binding_free (
&bind_handle,
&status );
CHECK_STATUS(FALSE, "rpc_binding_free", status, rpc_s_ok);
if (status != rpc_s_ok)
{
rpc_ns_mgmt_free_codesets(&server, &status);
CHECK_STATUS(FALSE, "rpc_ns_mgmt_free_codesets", \
status, rpc_s_ok);
rpc_ns_mgmt_free_codesets(&client, &status);
CHECK_STATUS(TRUE, "rpc_ns_mgmt_free_codesets", \
status, rpc_s_ok);
}
}
}
rpc_ns_mgmt_free_codesets(&server, &status);
CHECK_STATUS(FALSE, "rpc_ns_mgmt_free_codesets", status, rpc_s_ok);
rpc_ns_mgmt_free_codesets(&client, &status);
CHECK_STATUS(TRUE, "rpc_ns_mgmt_free_codesets", status, rpc_s_ok);
if (!model_found)
{
printf("FAILED No compatible server found\n");
tet_result(TET_DCE_FAIL);
}
rpc_ep_resolve_binding (bind_handle,
cs_test_v1_0_c_ifspec,
&temp_status);
CHECK_STATUS(TRUE, "rpc_ep_resolve_binding", temp_status, rpc_s_ok);
if(rpc_mgmt_is_server_listening(bind_handle, &status)
&& temp_status == rpc_s_ok)
{
printf("PASSED rpc_mgmt_is_server_listening()0);
}
else
{
dce_error_inq_text ((unsigned long)status, err_buf,
(int *)&temp_status);
printf("is_server_listening error -> %s\n", err_buf);
}
fp_in = fopen("./i18n_input_data", "r");
if (fp_in == NULL)
{
printf("i18n_input_data open failed\n");
15 36 Tandem Computers Incorporated 124245