Web Server Skeleton

How often have you wished to write your own web server? With my little program, you can. It contains all necessary code to write a UNIX-based web server (i.e. just like in the real world, you’ll need an operating system like Linux, FreeBSD, Solaris or AIX). The only thing that remains to be done is to implement a single function, handle_http_request(), that handles the Hypertext Transfer Protocol (HTTP). The input will be ready on the specified input stream, and you can write any output to the specified output stream. The code is written in the C programming language, and comes with a BSD license, ready to be used at home or at work.

Source code (.tar.gz format)

Antwort schreiben

Sie müssen als angemeldet sein, um einen Kommentar schreiben zu können.