OSF DCE Application Development Guide--Introduction and Style Guide
A Sample Application
(idl_char*)"smp",
&status);
if (status != error_status_ok)
{
print_server_error("dce_svc_register()", status);
exit(1);
}
/* Set up in-memory serviceability message table... */
dce_msg_define_msg_table(smp__table,
sizeof smp__table / sizeof smp__table[0],
&status);
if (status != error_status_ok)
{
print_server_error("dce_msg_define_msg_table()", status);
exit(1);
}
dce_svc_printf(SIGN_ON_MSG);
/* Create an object UUID for this server instance... */
create_server_uuid(&server_uuid, &server_uuid_v);
/* Register the interface and get bindings... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
"Calling server_register_get_bindings()"));
server_register_get_bindings(sample_v1_0_s_ifspec,
&binding_vector,
&status);
if (status != error_status_ok)
{
print_server_error("server_register_get_bindings()",
status);
exit(1);
}
/* Register server authentication information... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling rpc_server_register_auth_info()"));
rpc_server_register_auth_info(server_principal_name,
rpc_c_authn_dce_secret,
NULL,
KEYTAB,
&status);
if (status != error_status_ok)
{
print_server_error("rpc_server_register_auth_info()",
status);
exit(1);
}
/* Assume new identity... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug5,
124246 Tandem Computers Incorporated A− 15










