0

I've got a super simple RPC program I'm trying to implement, and I'm stuck at the beginning. Here is the .x:

struct intpair{
     int a;
     int b;
     string word<>;
};

program ADD_PROG{
      version ADD_VERS{
              int ADD(intpair)=1;
         } = 1;
} = 0x20000005; 

Here is the server routine in add_server.c:

/** This is sample code generated by rpcgen
 *  These are only templates and you can use them 
 *  as a guideline for developing your own functions.
 */

#include "add.h"
 int * add_1_svc(intpair *argp, struct svc_req *rqstp)
    {
     static int  result;
/*
* insert server code here
*/
     printf("add function called here we are\n");
     printf("parameters");

     return &result;

}

For some reason I cannot get the server to actually print "parameters". Does anybody know what is going wrong here? Thanks!

too honest for this site
  • 11,417
  • 3
  • 27
  • 49
nbk
  • 439
  • 1
  • 5
  • 17

0 Answers0