PreviousNext

Including idl-Generated Headers

Like greet_client.c, the greet_server.c module includes greet.h so that constants, data types, and procedure prototypes are available in the application. For example:

/*

* greet_server.c

*

* Main program (initialization) for "greet" server.

*/

#include <stdio.h>

#include <dce/dce_error.h>

#include <dce/rpc.h>

#include "greet.h"

#include "util.h"

int

main(

int argc,

char *argv[]

)

{

unsigned32 status;

rpc_binding_vector_t *binding_vector;

if (argc < 2) {

fprintf(stderr, "usage: greet_server <CDS pathname>\n");

exit(1);

}