Implement the two function with RPC and use the XDR encode/decode the params
There are two source files of socket-client.c and socket-server.c
<1> use commands to compire the socket server c file
gcc server.c -o socket-server
<2> compire the socket client c file
gcc client.c -o socket-client
<3> start the server:
./socket-server.out
<4> start the client
./socket-client
<5> select the function and input your params