DCE Application Programming Guide

Porting Applications
HP NonStop DCE Application Programming Guide429551-003
5-4
Starting the Server
Added the function init_serviceability() (item B8 in the listing on
page A-20) for initializing serviceability. Also added a prototype definition for the
function (item B4 in the listing on page A-18) and a call to the function (item B5 in
the listing on page A-19).
Replaced the printf() call that displays the startup message with a call to the
dce_svc_printf() function (item B6 in the listing on page A-19).
Added a call to the dce_svc_unregister() function (item B7 in the listing on
page A-19) to free the serviceability handle.
Starting the Server
The new server must be configured and started by the dcecp utility. The command to
configure the server is:
dcecp
dcecp> server create infpls \
> -program your-directory/infpls_s_v11.out \
> -dir your-directory \
> -starton explicit \
> -services { { annotation { Information Please Program } } \
> { interface {00602161-7c3f-1c90-b0ae-0000c07c3610 1.0}}}
dcecp>
The command to start the server is:
dcecp -c server start infpls
The command to stop the server is:
dcecp -c server stop infpls