CN LAB Ex6
CN LAB Ex6
PROGRAM:
RPC SERVER:
import java.io.*;
import java.net.*;
class RPCS
{
public static void main(String[] args) throws Exception
{
ServerSocket sersock = new ServerSocket(3000);
System.out.println("Server ready");
Socket sock = sersock.accept( );
RESULT
Thus the implementation of RPC is verified and executed successfully.
Do it Yourself:
1. Print notification “Enter correct choice” for input operation other than add,sub,mul & div in this
program. (either client or server)
2. Add RPC for factorial value in server program