OSF DCE Application Development Guide--Core Components

Writing Internationalized RPC Applications
CHECK_STATUS(TRUE, "rpc_rgy_get_codesets", status, expected);
rpc_server_register_if (
cs_test_v1_0_s_ifspec,
NULL,
NULL,
&status );
CHECK_STATUS(TRUE, "rpc_server_register_if", status, expected);
rpc_server_use_all_protseqs (
rpc_c_protseq_max_reqs_default,
&status );
CHECK_STATUS(TRUE, "rpc_server_use_all_protseqs", status, expected);
rpc_server_inq_bindings (
&binding_vector,
&status );
CHECK_STATUS(TRUE, "rpc_server_inq_bindings", status, expected);
rpc_ns_binding_export (
rpc_c_ns_syntax_default,
(unsigned_char_p_t)nsi_entry_name,
cs_test_v1_0_s_ifspec,
binding_vector,
NULL,
&status );
CHECK_STATUS(TRUE, "rpc_ns_binding_export", status, expected);
rpc_ep_register (
cs_test_v1_0_s_ifspec,
binding_vector,
NULL,
NULL,
&status );
CHECK_STATUS(TRUE, "rpc_ep_register", status, expected);
/*
* Register the server’s supported code sets into the name space.
*/
rpc_ns_mgmt_set_attribute (
rpc_c_ns_syntax_default,
(unsigned_char_p_t)nsi_entry_name,
rpc_c_attr_codesets,
(void *)arr,
&status );
CHECK_STATUS(TRUE, "rpc_ns_mgmt_set_attribute", status, expected);
/*
* Free memory allocated by getting code sets.
124245 Tandem Computers Incorporated 15 19