This is a sample application that demonstrates the function of Remote Procedure Calls (RPC).
rpcbind needs to be installed in the system to run the application.
Run,
rpcinfo;
To verify that rpcbind in installed in the system. If it is not, follow the installation instructions to install it in your system.
Execute the following commands to install rpcbind in your system.
Homebrew can be used to install rpcbind on MacOS environment.
brew install rpcbind
sudo apt-get install rpcbind
- Deploy the server using,
sudo ./sqr-server
- To test the remote method,
SERVER_ADDRESS - Address of the server
sudo ./sqr-client SERVER_ADDRESS NUMBER
NUMBER - Number to be squared