OSF DCE Application Development Guide--Introduction and Style Guide
OSF DCE Application Development Guide—Introduction and Style Guide
####################################################################
# Part IIIa
# Messages for serviceability table
#
# Note that there has to be one of these for each of
# the subcomponents declared in the second part of
# the file (above)...
start !intable undocumented
code smp_i_svc_server
text "Sample server"
end
start !intable undocumented
code smp_i_svc_binder
text "Sample object binder"
end
start !intable undocumented
code smp_i_svc_manager
text "Sample manager"
end
The server main() function then establishes the required serviceability context and
defines a message table with the following calls:
/* Set the program name for serviceability messages... */
dce_svc_set_progname(argv[0], &status);
/* Get serviceability handle... */
smp_svc_handle = dce_svc_register(smp_svc_table,
(idl_char*)"smp",
&status);
/* Set up in-memory serviceability message table... */
dce_msg_define_msg_table(smp__table,
sizeof smp__table / sizeof smp__table[0],
&status);
7 − 10 Tandem Computers Incorporated 124246