An ultra-mini web server in Qbasic

Announce and discuss the progress of your various programming-related projects...programs, games, websites, tutorials, libraries...anything!

Moderators: Pete, Mods

Post Reply
mikefromca
Coder
Posts: 39
Joined: Wed Oct 16, 2019 11:28 am

An ultra-mini web server in Qbasic

Post by mikefromca » Sun Jan 03, 2021 11:15 pm

Ok, so I finally figured out a way to get a little web server running in Qbasic without relying on "CALL interrupt" or "CALL interruptx". See attached ZIP

I ended up making my own assembly routines. some function calls might not work yet as it is a work in progress but the main objective here is to serve pages as fast as possible to prevent a DOS attack from shutting down the server which I managed to do with dosbox a few times.

To get this to work fully you can use Qbasic 1.1 or QuickBasic 4.0 or 4.5 with /l switch
AND you need to have trumpet NTCPDRV.EXE loaded and when you do, you'll see your IP address listed from it.

The good news is it can all be done in DOSBOX and there's documentation over there on how to run a network in DOSBOX. Just a few lines need to be modified in DOSBOX config file and in DOSBOX, the packet driver ETHERSL needs to be loaded because what DOS will see is ethernet over a virtual serial port defined by DOSBOX. so I ended up with 2 interrupts in use by DOS. one for the packet driver, and one for NTCPDRV.
NEWSERV.ZIP
Source code to web server
(3.7 KiB) Downloaded 122 times
This will help bring network functionality into DOS:

https://www.dosbox.com/wiki/Slip_config ... linux_host

And this is one place to get ntcpdrv.exe, from someone who invented another webserver for DOS.

http://www.georgpotthast.de/sioux/

Post Reply