Remote Procedure Call to transfer file from client to server in the form of argument.
The project aims at Distributed Computation implementation of file transfer using RPC.
I have implemented the project as a part of my college assignemnt. The project helped me work with rpcgen an interface generator pre-compiler.
- Transferring text document from client to server.
- Data to be transfered in chunks.
- Checksum for error handling.
- Check if rpcbind is installed in your linus system using the command
$rpcinfo. (Make sure to use a stable version of linux. I tried to compile my code on Ubuntu 20.10 bus was unsuccessful as some rpc header files are not available in the version of ububtu, so I generated a virtual machine with Ubuntu 18.04 for the task) - If not installed then install rpcgen with the following script
$sudo apt-get install rpcbind. - Open the extracted folder in terminal and run following command to generate executable files
$make -f Makefile.forward. - Now keep the two executables forward_server and forward_client in separate directories.
- Start server by running the command in one terminal
$./forward_sever. - In another terminal start instance of client to share file with the command
$./forward_client localhost myNewFile.txt(localhost is the current location of server and myNewFile.txt is the name of file to be transfered).