a3X3k / RPC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RPC

Installation

sudo apt-get install rpcbind

After Successful Installation

rpcinfo

image

Creating Calculator Program

struct numbers
{
	int a;
	int b;
	int c;
};

program CALC_PROGRAM
{
	version CALC_VERS
	{
		int calc(numbers) = 1;
	} = 1;	

} = 0x23451111;

Compile

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.

Run Server

sudo ./calc.server

Run Client

sudo ./calc.client localhost <Arguments>

About


Languages

Language:C 97.9%Language:RPC 2.1%