### The greet_server.c Source Code

Most applications should use the DCE convenience routines for server initialization routines (routines that begin with dce_server_) to prepare servers to listen for remote procedure calls. These routines are simple to use, prepare a server so that dced can manage it, and they allow enough flexibility to do most typical initializations. However, for detailed control, applications can also use the lower-level RPC API to do server initialization. In this topic, we describe how to use the RPC API for server initialization.

In this topic, the greet_server.c module is described and shown in successive pieces.

More:

Including idl-Generated Headers

Registering the Interface

Selecting Protocol Sequences

Obtaining the Server's Binding Handles

Registering Endpoints

Exporting to CDS

Listening for Calls

####