GOMATHY GOWRI NARAYANAN
999-07-6251

FILES INCLUDED:
server.c
client.c
keys.h
config.txt
p
q
Sample log (a folder containing 4 log files, server,client1,client2 and client3)

* The server program is executed in server.c and the client program is implemented on
  client.c. So to run the server program open a seperate console and three other 
  console for the clients. (As my config file has 4 machines)

* p is the executable for server and q is the executeable for the clients.

* samplelog has the sample log file that was run on 4 sites with 1 file server and 
  3 clients, one client requesting read and one client requesting writethrough and
  the last one for delayed write policies. 

* FILE SERVER has the documentation and a brief explanation of the design and 
  implementation of the project. 

* config.txt is the configuration file. Please make sure that the config.txt file 
  is in the same directory as that of PROJECT.c

TO COMPILE:

* To compile the program use

	g++ -lpthread -lsocket -lnsl -o p server.c
	g++ -lpthread -lsocket -lnsl -o q client.c



EXECUTION:

Please make sure that the port number and the machine name given in config.txt matches with
what is given during run time. 

TO RUN:

* To run the program for server, type 

	p ID MACHINENAME PORTNUMBER

For eg., p 1 net04 6000

* To run the program for client, type 

	q ID MACHINENAME PORTNUMBER

For eg., q 2 net05 7000

LOG FILES:

* There are no seperate log files maintained. The output is shown on the console.
  At the runtime, the output can also be redirected to another output file or log file,
  one for each process using script.

FOr eg., script server.log at the server console redirects the contents to server.log file.

