I've used these routines for ages, and they are great. It adds real-mode DOS TCP/IP support to your QBasic application. Latest version is V1.2
To use: You need the Trumpet TCP Stack for DOS (attached) to use these routines. You also need the packet driver for your Ethernet card (avaliable from your Manufacturer, or driver CD).
The Trumpet TCP Stack uses BOOTP to get an IP address instead of DHCP, meaning it's more than likely you will need to define static IP information (most routers don't support BOOTP). To define static IP information, run the following commands on the DOS prompt
Code:
SET IP=192.168.1.25
SET NETMASK=255.255.255.0
SET GATEWAY=192.168.1.1
or in a batch file like:
Code:
@echo off
PACKETDRIVER.EXE
SET IP=192.168.1.25
SET NETMASK=255.255.255.0
SET GATEWAY=192.168.1.1
NTCPDRV.EXE
You can use the examples included with the QBasic routines to get an idea of how it works.
Limitations
- No UDP support in Trumpet TCP Stack, hence none in the QBasic routines
- No DNS support in the Trumpet TCP Stack, and no UDP, so custom DNS routines can't be implemented
- Typically only single-threaded applications can be made, although with some clever programming, you can make it sort of multi-threaded.
The author of the QBasic routines is Mike Chambers
http://www.rubbermallet.org