

Example Program: Web Server This is a simple web server program for Windows that uses ServerMe.H to implement the web serving facilities. The program been written in Borland C++ Builder and should work with any version of Windows from Windows 95 to Windows 10 and later. Download the Web Server sources and executable! (260K) The web server can function as a simple personal web server, although node that it is a single threaded program that cannot handle multiple simultaneous connections (it should not be a problem for very low loads, but anything above a few connections per minute will be too slow and a single long download can block the entire site). The program is tiny and can be installed in very old and slow computers without issue. It can run at the background and it closes ("minimizes") on the system tray so it can stay out if your way. In addition to serving static content, it can also serve limited dynamic content in the form of content DLLs (which are DLLs that provide the HTTP response). Check the contdll.txt file in the archive for details. A sample content DLL for a poll in C++ is included. Note that content DLLs are disabled by default and must be enabled via the options, otherwise the server will offer the DLL file itself for download. Here are some images:

the main window

the options dialog

the about dialog

the tray popup menu