Page 1 of 1

Read TCP/IP port

Posted: Sun May 18, 2008 12:51 am
by John_Schofield
Hi

I need to write a short program which connects to and then listens for data which will be streamed on a tcp/ip port.

The port will be either port 10000 or 10200 on a locally networked computer (lets's say 192.168.1.199)

Does anyone have any experience of setting this sort of program up assuming it's possible in Quickbasic (I use both 4.5 and 7.1)? I also have Powerbasic CC but not really started on programming with that yet.

For information, the data which will be read will be rfid chips passing over an antenna.

Any help would be appreciated.

Posted: Wed Jun 04, 2008 3:36 am
by Mike Chambers
yes, actually i've put together a full set of TCP/IP routines for QB4.x and 7.1

http://www.rubbermallet.org

go to the "TCP/IP programming" section there, and download ntcpqb11.zip

just remember, it HAS to be run in a real DOS environment with a packet driver and the trumpet TCP stack. it will not work under windows, unless you set up a virtual machine in vmware/qemu/etc

i created these routines initially to write an IRC client for an old 8088 computer i have, but they can really be used for any TCP-related application. i've used the routines to make HTTP servers, IRC servers, FTP servers/clients, AIM client, and all kinds of other stuff.

Posted: Wed Jun 04, 2008 10:36 am
by John_Schofield
Hi Mike

Thanks for the reply but you've totally lost me there! Can you explain where to find and how to ensure the programs you refer to can be found? Are you saying you need to start up only in dos and not in Windows with DOS window?

Cheers