snq
Experienced Member
So I finally got my old PCs installed again yesterday, after moving over a year ago.
I figured I'd share my simple http server, maybe someone has a use for it.
It uses my homebaked TCP lib, which has only really been properly tested over here on my AT and Dosbox. The main focus has been on speed, while keeping memory usage at a reasonable level at the same time too.
It should run on anything from 8086 and up. Some CRT functions may need a certain DOS version though.
The webserver will use the current directory as the root dir. It doesn't do index files or anything, its primary use is to provide an easy way to download files off your DOS machine.
The IP and port to use are specified from the command line, DHCP works too.
To keep things simple it only handles one request at a time, so the server will be busy while downloading files.
So, to get this thing running first load a packet driver for your card, and then start sahttpd like this: sahttpd.exe ip port, eg sahttpd 192.168.1.22 8080
The port param is optional, the default port is 80. For DHCP: sahttpd d 80 or just sahttpd d
The packet driver interrupt should be automatically detected, so no need for any config files.
On my AT with Linksys Ether16 card I'm getting 280k/s downloads. It does have an XTIDE card and a drive that maxes out at 2000k/s, so obviously ymmv.
View attachment sahttpd.zip
Bugreports are welcome
My next project will be an ftpd. I remember trying one, but it was so awfully slow that it was basically unusable.
I figured I'd share my simple http server, maybe someone has a use for it.
It uses my homebaked TCP lib, which has only really been properly tested over here on my AT and Dosbox. The main focus has been on speed, while keeping memory usage at a reasonable level at the same time too.
It should run on anything from 8086 and up. Some CRT functions may need a certain DOS version though.
The webserver will use the current directory as the root dir. It doesn't do index files or anything, its primary use is to provide an easy way to download files off your DOS machine.
The IP and port to use are specified from the command line, DHCP works too.
To keep things simple it only handles one request at a time, so the server will be busy while downloading files.
So, to get this thing running first load a packet driver for your card, and then start sahttpd like this: sahttpd.exe ip port, eg sahttpd 192.168.1.22 8080
The port param is optional, the default port is 80. For DHCP: sahttpd d 80 or just sahttpd d
The packet driver interrupt should be automatically detected, so no need for any config files.
On my AT with Linksys Ether16 card I'm getting 280k/s downloads. It does have an XTIDE card and a drive that maxes out at 2000k/s, so obviously ymmv.
View attachment sahttpd.zip
Bugreports are welcome
My next project will be an ftpd. I remember trying one, but it was so awfully slow that it was basically unusable.