It is currently Sat Sep 11, 2010 12:55 am

All times are UTC







Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: TCP/IP Networking in QBasic
PostPosted: Sun Oct 18, 2009 12:24 pm 
Offline
User avatar

Joined: Thu Oct 08, 2009 6:22 pm
Posts: 162
Location: London, UK
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


You do not have the required permissions to view the files attached to this post.

_________________
Libretto 110CT 233Mhz 32MB RAM (Half-dead motherboard)
Overclocked Japanese Libretto 100 266Mhz 64MB RAM

_________________



Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group