RPC Client Code (rsum.c) #include sum.h main(int argc, char* argv[]) { CLIENT* cl; sum_in in; sum_out *outp; // create RPC client handle; need to know server s address cl = clnt_create(argv[1], SUM_PROG, SUM_VERS, tcp ); in.arg1 = atol(argv[2]); // number to be squared // Call RPC; note convention of RPC function naming if ( (outp = sumproc_1(&in, cl)) == NULL) err_quit( %s , clnt_sperror(cl, argv[1]); printf( result: %ld\n , outp->res1); }
{}