try to write a web server in C