#include #include "firsttry.h" /* CpSc 824 Hello world RPC server -- it just returns the string. */ char **firsttry_1(void *dummy, struct svc_req *reqPtr) { static char msg[256]; static char *p; struct authsys_parms *credPtr; credPtr = (struct authsys_parms *)reqPtr -> rq_clntcred; fprintf(stderr, "MACH=%s, UID=%d, GID=%d\n", credPtr->aup_machname, credPtr->aup_uid, credPtr->aup_gid); strcpy(msg, "Hello world"); p = msg; return(&p); }