sudo apt-get install rpcbind
rpcinfo
struct numbers
{
int a;
int b;
int c;
};
program CALC_PROGRAM
{
version CALC_VERS
{
int calc(numbers) = 1;
} = 1;
} = 0x23451111;
rpcgen -a -C calc.x
- Using make command, create all other files that are necessary as per the RPC Structure.
make -f Makefile.calc
- Make required modifications to Client and Server files that are created.
sudo ./calc.server
sudo ./calc.client localhost <Arguments>