Qbasicnews.com

Full Version: Internet server in BASIC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

I'm writing an Internet/communications server in QB. Believe it or not, its actually coming along smoothly and I'm doing this as a hobby in my spare time. Its sorta cross between the old KA9Q/FNOS software and the old Renegade BBS software. I plan to release it as open source when done. A website is being set up shortly where all of you can participate in its developement.

Its going to be sortof like the old BBS software, where you can login, post messages, download files and play door (MUD) games. Except that mine will host and serve web-based connections. The program is essentially a multi-tasker written in QB that serves many different ports at once. I'm also planning to do this without the use of winsock.dll or any other components. This is strictly going to be a DOS-based web server.

My problem is, I need a library or assembly-language source code that handles the actual network card inside the computer. Given that this is all DOS-based, its basically an interface between the network cards' TSR packet driver and QB itself. Any feedback or direction would be appreciated. There used to be an NIC libary floating around the 'net, now I can't find it anymore...

My goal is to have a fully-functional DOS web server that I can show off as exploiting the power of QB and what can *really* be done with it.

*Nick*
Googled for Modem Routines for QB

I think if you check out Ralphs'(?....i think) QB site, he has some clever code for modem stuff......

Oz~
VonGodric has reminded me about v1ctors' dsock qb lib.....definately worth using

Oz~
I think you're looking for this.

DSOCK won't help here because it requires Windows.
Quote:I think you're looking for this.

DSOCK won't help here because it requires Windows.

Thanks for your help. I'm looking at the Sniffer source code now and its a good start. Because my server is a full-blown multi-tasker, I'm going to need to write a full TCP/IP stack. :o
Quote:Googled for Modem Routines for QB

I think if you check out Ralphs'(?....i think) QB site, he has some clever code for modem stuff......

Oz~

Are you referring to Ralph Brown's Interrupt List? I have that already, and am looking to kinda narrow that down to the interrupts handled by an NIC packet driver. I did find sniffer.zip as per the other reply here and I'm going to start building on that, although I need the facilities of a full TCP/IP stack in my program.

*Nick*
I have a couple libs and QLBs here without docs, which I know are used for networking but other than that I have no information on them. I inherited this stuff from the person who gave me my copy of PDS 7.1, and much of it is stuff that he created. Some of this might be helpful but I have no clue at all how to access the functions in these libraries so... well, I'll see if I can find out.

[edit]

Ok, so is there anyway to find out the functions and parameters for an otherwise unknown library? I have a net.lib and a net45.lib, presumably for QB 4.5 and QBX.

[edit]

I also located the following which might be useful, these are from the 1994 MSDN set, first disk, MSDOS folder.
http://return.no-ip.org/archive/TCPSDK.zip
http://return.no-ip.org/archive/TCPUTIL.zip

Hopefully either you or someone else can find a use for these.