Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

smallest http server with scripting

Name: Anonymous 2010-08-08 22:26

make the smallest http server you can

List of things it need:
* HTTP 1.1
* 200 OK
* 404 Not Found
* Built-in 404 page [or user selectable]
* Some sort of _built-in_ scripting (ex. lua)
* Must be able to tell MIME type from file extension or contents
* Less than 1000 lines total (needs to be READABLE!)
* Doesn't use boost (fgts) or std (fgts). CRT is OK.
* Must be CONFIGURABLE [via command line or file]
* Only use standard sockets no SFML/boost/other [ie: winsock]
* Can be multi-client or be multi-threaded

Name: Anonymous 2010-08-09 1:41

>>5
[code]
#include <winsock2.h>
#include <WS2tcpip.h>
#include <windows.h>
#include <stdio.h>
[code]

What the hell is wrong with you? There is something wrong with you.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List