PreviousNext

Sample dced Application

The following topics contain the complete source code, Makefile, and dcecp installation scripts for a simple DCE application that uses some of the dced server management facilities.

The greet_dced application is an adaptation of the greet application described in the "greet Application" topic in Introduction to OSF DCE. The greet_dced server is registered and executed via dced.

Once started, greet_dced's behavior is identical to that of greet. The client side of the application sends a greeting to the server side of the application. The server prints the client's greeting and sends a return greeting back to the client. The client prints the server's reply and terminates. (Note that the server does not catch signals, so when it is stopped, it does not clean up its namespace or registry entries; this must be done manually.)

More:

Running the Program

greet_dced.idl

greet_dced_server.c

greet_dced_manager.c

greet_dced_client.c

util.c

util.h

greet_dced.install

greet_dced.delete

Makefile