View Full Version : SWSSOCK TCP/IP for PCs

April 2nd, 2015, 06:10 PM

Has anybody worked with this in DOS? If so, what are your impressions.

I took a quick peek at some of the source code and it seems very comprehensive ....

April 14th, 2015, 09:50 AM
Didn't know about it :)
Seems very interesting though, complete and well done. Though perhaps lacking in comments in source code and there could be more examples how to use the apps.
I downloaded binaries and source and have looked around in the source a bit too. I tried (in dosbox) the httpd server, was able to ping it but not successfully load a page. The server outputs messages saying "bad CRC checksum", maybe something wrong with packet lengths or buffers? HAve not had time to test and debug further.

The CGI stuff in the webserver seemed particularly interesting to me. Currently looking through the source to try to figure out how it works. As far as I can tell, it sets a bunch of environment variables (URI and parameters seems to end up in those variables) to DOS, then tries to execute an external program, which can take benefit of these enviromental variables.

April 19th, 2015, 09:27 PM
I got the http server running! The problem was in dosbox virtualisation, on real hardware it ran fine. Had to compile a 16-bit version of the server though, as the pre-compiled binaries were 32-bit, but getting it compiled was no problems.
I found the CGI implementation particularly interesting and intend to explore that further when I can find the time. Something for your http server Mike? ;)

Have not yet tested how this compares to mTCP in terms of speed.