Sample micro web server

The sample code shows a very basic web server that handles requests one at a time. A text line is printed showing the file requests. Please note the contents to be served has to be in the same folder of the server binary.

BTW, web server listens on port 7777, but you may change that if you wish.

Click on this entry’s title to see the code on pastie’s page. Please note there is a download link on the upper right corner there.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: