home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / inetray / intryst2.c < prev    next >
C/C++ Source or Header  |  1992-06-04  |  1KB  |  56 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <rpc/rpc.h>
  8. #include <syslog.h>
  9. #include "inetray.start.h"
  10. #ifndef ITIMER_REAL
  11. #include    <sys/time.h>        /* for A/UX */
  12. #endif
  13.  
  14. void
  15. starter_1(rqstp, transp)
  16.     struct svc_req *rqstp;
  17.     register SVCXPRT *transp;
  18. {
  19.     union {
  20.         sPrm start_1_arg;
  21.     } argument;
  22.     char *result;
  23.     bool_t (*xdr_argument)(), (*xdr_result)();
  24.     char *(*local)();
  25.  
  26.     switch (rqstp->rq_proc) {
  27.     case NULLPROC:
  28.         (void) svc_sendreply(transp, xdr_void, (char *)NULL);
  29.         return;
  30.  
  31.     case START:
  32.         xdr_argument = xdr_sPrm;
  33.         xdr_result = xdr_void;
  34.         local = (char *(*)()) start_1;
  35.         break;
  36.  
  37.     default:
  38.         svcerr_noproc(transp);
  39.         return;
  40.     }
  41.     bzero((char *)&argument, sizeof(argument));
  42.     if (!svc_getargs(transp, xdr_argument, &argument)) {
  43.         svcerr_decode(transp);
  44.         return;
  45.     }
  46.     result = (*local)(&argument, rqstp);
  47.     if (result != NULL && !svc_sendreply(transp, xdr_result, result)) {
  48.         svcerr_systemerr(transp);
  49.     }
  50.     if (!svc_freeargs(transp, xdr_argument, &argument)) {
  51.         syslog(LOG_ERR, "unable to free arguments");
  52.         exit(1);
  53.     }
  54.     return;
  55. }
  56.