OSF DCE Application Development Guide--Core Components
DCE Host Services
3. Access (read or write) the actual data for the entries obtained or peform other
functions appropriate for the service. For example, if your application reads the
hostdata management service’s cell name entry, the API accesses dced which may
actually read the data from a file. For another example, if your application
established a binding to the security validation service, it could validate the
security daemon.
4. Release the resources obtained in step 2.
5. Free the binding established in step 1.
Applications bind to a host service by using the dced_binding_create( ) or
dced_binding_from_rpc_binding() routine. The first routine establishes a dced binding
to a service on a host specified in a service name, and the second routine establishes a
dced binding to a service on a host for which the application already has a binding. Both
of the routines return a dced binding handle of type dced_binding_handle_t, which is
used as an input parameter to all other dced API routines.
2.4.1 HostService Naming in Applications
Applications include a host service name as input to the dced binding routine
dced_binding_create(). A host service name is a string that may include a host name,
or a cell and host name. The following key words in the host service name refer to a
specific DCE host service:
hostdata Refers to configuration data of the hostdata management service.
srvrconf Refers to the static server configuration portion of the server
management service. This refers to the managment of a DCE-installed
server.
srvrexec Refers to the dynamic server execution portion of the server
management service. This refers to the management of a running DCE-
installed server.
secval Refers to the security validation service.
keytab Refers to the private key data of the key table management service.
The following examples show service names and the locations of the hosts in the
namespace:
service The host is local, the same as the application’s.
service@hosts/host
The host is in the local namespace.
/.:/hosts/host/config/service
The complete specification for service@hosts/host where the host is in
the local namespace.
/.../cell/hosts/host/config/service
The host is in the global namespace.
124245 Tandem Computers Incorporated 2−5