OSF DCE Application Development Guide--Introduction and Style Guide
Introduction to DCE Application Programming
includes the following:
principal create ...
acl mod /.:/sec/principal/...
• It is recommended that you have dced start your application by using server
configuration information. It is generally better to do this by writing a dcecp script
that sets up the server configuration information (the arguments to start the
executable) rather than doing it with C code that calls the dced_server_create() API.
In general, dcecp scripts for server configuration allow better flexibility than embedded
C code. Furthermore, unlike embedded code, the script does not persist after
configuration is done.
The DCE control program can also be useful for debugging, as the following examples
show:
• You can check exported infoformation in the namespace with rpcentry show or
rpcgroup, rpcprofile show.
• You can use server ping to see if your server is running and receiving requests.
• If your server was set up to be started by dced, you can start it by using the server
start command and can view the startup parameters by using server show
-executing.
1.4 The Interface Definition
Once you have designed your DCE application and have decided which procedures are
needed, and which will be remote procedures, the next step in developing the application
is to write one or more interface definitions that describe the remote procedures your
application’s clients will be requesting your application’s servers to run.
To create an interface definition, use the following steps:
1. Generate an interface UUID and a skeleton .idl file with the uuidgen utility.
2. Write your interface operation declarations in IDL, using the skeleton .idl file you
generated with uuidgen as a base.
3. Write the attribute configuration file. This is an optional step that you take only if
you want to alter the IDL output in various ways.
4. Compile the completed interface definition file with the IDL compiler.
The following sections describe these steps in more detail.
124246 Tandem Computers Incorporated 1−9










