Write a web-server process that replies to HTTP GET requests involving html files in the current directory where you process is started. Example of the type of GET requests your process will get is shown toward the end. Your process will receive a (TCP) port as an argument where it must accept and server incoming TCP connections.
You should be able to test your server using your web browser and pointing it to the server (i.e. [login to view URL]:YourPortNumberLinks to an external site.)
When testing we will provide the html file your server will use so you just submit your C code.
Your code will implement a TCP server that accepts connections at a port specified via command line argument -p. Once it received an incoming connection your server will have to read the incoming request and parse the HTTP GET request and then return the requested file (i.e. [login to view URL]). If file does not exist, your program must return a proper HTTP error code for this condition. You must support this for HTTP 1.1 and HTTP 1.0