Networks homework assignment, a simple web server written in C