Name: Arthur Dick Date: August 12, 2004 Course: CPSC 441 Tut61 Assignment 4 Readme --------------------------- To compile the program, execute the command: gcc httpserver.c -o httpserver Then, to run the server: ./httpserver [port#] If no port number is entered, the program will default to 6767. Then, to recieve the file "test.html": Enter into a browser window (on the same machine!) http://127.0.0.1:6767/test.html Which assumes you are using the default port number of 6767, if you are not, substitute the appropriate port number in it's place. To retrieve a file from a different machine you will need to know the IP address of the machine running the server, and substitute "127.0.0.1" for the actual IP. If a file which does not exist is requested, a 404 File Not Found error message will be sent to the client. The server can also handle concurrent requests via the fork() instruction.