anybody please give me a java code for simulating RPC calls using client -server model the program should take an integer parameter as an input and return the next integer as output.all this program communication should be done using datagram packets and datagram sockets and it should contain 4 parts of the program that is server,server-stub,client,client stub ....please post the reply as soon as possible............
please give me exact code which contains 4 parts
1.client program calling a procedure that accepts an integer parameter
2.client stub which doing marshalling the parameters. and give back to server stub
3.server stub which gets the parameters from client stub and gives to the server.
4.server then unmarshalls the parameters and then processes it(that is it should return result as next integer) and send to client in the reverse process.
if input is 1
the server should process and result as 2 taht is next integer .
please give me the code for all the 4 programs mentioned above.....
All the above communication should be done using UDP datagram [packets and sockets]
... and what will you do after that? Pass it as yours?
Originally Posted by readraviteja
Better do the work yourself and only ask if you get stuck with your code.