Contains the projects for distributed computing class.
(The following steps were followed after loggin into the remote linux servers)
- rpcgen -k date.x
- gcc -o client client.c date_clnt.c
- gcc -o server server.c date_svc.c
- ./server
- ./client localhost
- kill server-pid
In the terminal:
-
idlj -fall idlfilename.idl (This generates idlfilenamePOA.java: server skeleton, _idlfilenameStub.java: client stub, idlfilenameOpeations.java: contains teh method sayidlfilename(), idlfilename.java, idlfilenameHelper.java, idlfilenameHolder.java)
-
Write the server and client codes
-
javac .java idlfilename/.java
-
start orbd from UNIx orbd -ORBInitialPort 1050&
-
java idlfilenameServer -ORBInitialPort 1050 -ORBInitialHost localhost&
-
java idlfilenameClient -ORBInitialPort 1050 -ORBInitialHost localhost
Run separate instances of the server file and the client files.