In this assignment you will use UNIX sockets to implement a simple WWW client and WWW server that communicate using a restricted subset of http. The two processes will communicate with each other in a connection-oriented manner using sockets. The client should then issue a simple GET http command. It should then look for the GET request and pick out the file name.
Undergraduate students can implement either a sequential or a concurrent server.
Finally, write a concurrent server, as required or desired. In writing your code, make sure to check for an error return from all system calls. If there is an error, the system declared global variable, errno, will give you information about the type of error that occurred, as shown in the example above. Note that read and write might return without having read or written the full number of bytes requested. In such a case, these calls will return a positive return value indicating the number of bytes actually read or written.