OSF DCE Application Development Guide--Core Components

DCE Host Services
Set Up service_t Structures for Each Interface
Each service that the server supports is represented by a
service_t data structure that contains the interface
specification, among other things. In this example the client
stub for the interface was compiled with the program so that
the interface specification (greetif_v1_0_c_ifspec) could be
obtained without building the structure from scratch.
Set Up a server_fixedattr_t Structure
Other fixed attributes required for all servers describe how
the server can start, the program name and pathname for the
server so that dced knows which program to start, and the
program’s arguments, among other things.
dced_server_create()
This routine uses the filled-in server_t structure to create a
srvrconf entry for dced. The data is stored in memory for
quick access whenever the server is started.
dced_binding_free()
Each call to the dced_binding_create() routine requires a
corresponding call to dced_binding_free() to release the
binding resources allocated.
2.6.2.2 Modifying a Server’s Configuration Attributes
The data for configuring servers includes arrays of attributes. For flexibility, dced is
implemented using the extensible and dynamic data structures developed for the DCE
security registry attributes. This extended registry attribute (ERA) schema gives vendors
the flexibility to modify the attributes appropriate for configuring servers on various
systems. The use and modification of these data structures are described in Chapter 28.
Applications commonly use dced_server_modify_attributes() after the
dced_server_create() routine to change the default configuration attributes (the
attributes field of a server_t structure) for a remote server. A dced_attr_list_t data
structure is input that contains an array of sec_attr_t data structures and a count of the
number in the array.
2.6.2.3 Deleting a DCE Server
Management applications use dced_server_delete( ) to delete a server’s configuration
data and entry in its hosts dced. Although this does not delete the actual server program
from the host, it removes it from DCE control.
124245 Tandem Computers Incorporated 2 21