PreviousNext

greet_dced_manager.c

Following are the contents of the greet_dced_manager.c file, which contains the implementation of the greet_dced interface.

/*

* greet_dced_manager.c

*

* Implementation of "greet_dced" interface.

*/

#include <stdio.h>

#include "greet_dced.h"

void

greet_dced(

handle_t h,

idl_char *client_greeting,

idl_char *server_reply

)

{

printf("The client says: %s\en", client_greeting);

strcpy(server_reply, "Hi, client!");

}