The purpose of this project was to create a webpage with static files, cgi scripts, and directories that can be navigated. We used low level system calls like socket, bind, listen, and accept for client/ server interactions. We also used low level calls to put content on the page, including fgets, fwrites, fopen, and fputs. Additionally, we had to check for / prevent any memory leaks, and allow for multiple requests to the website at a time by forking the server process. The project was called spidey because it was centered around networks.

Major Lessons

  • Client- Server interactions
  • C system calls
  • Basic HTML Requests
An example of the webpage in action.
Spidey
Tagged on: