Appendix B. Scenario 2: Source code listings 337
break;
}
}
/* end the binding import lookup loop */
rpc_ns_binding_import_done(&import_context, &st);
if (st != error_status_ok) {
dce_error_inq_text(st, error_string, &error_inq_st);
fprintf(stderr, "Cannot end binding import: %s\n", error_string);
exit(1);
}
fprintf(stdout, "\n");
MAX_PASS= atoi(av [2]);
for (i=1; i <= MAX_PASS; i++) {
greet_rpc(h, name_to_greet, reply);
printf("The Greet Server said: %s\n", reply);
fflush(stdout);
}
return(0);
}
DCE dependent application server
Description: Application server with DCE dependencies
File name: server_s2.c
#include <stdio.h>
#include <stdlib.h>
#include <dce/pthread_exc.h>
#include <dce/dce_error.h>
#include <dce/rpc.h>
#include "greet.h"
#defi ...