Using TCP/IP - DOS networking with NDIS drivers

DOS specific questions.
Cpcdos
Posts: 207
Joined: Mar 06, 2013 13:52
Location: France - LYON 69003
Contact:

Using TCP/IP - DOS networking with NDIS drivers

Postby Cpcdos » May 28, 2013 14:11

Hello world ! I would like have an example FB code for Networking with TCP/IPv4 under DOS.
I have a NDIS driver installed for my network card ;)

Thank!
TJF
Posts: 3486
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby TJF » May 29, 2013 4:55

I didn't test it yet. But TSNE is based on CLib and should run under DOS:

MOD
Posts: 555
Joined: Jun 11, 2009 20:15

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby MOD » May 29, 2013 10:19

TSNE_V3.bi wrote:

Code: Select all

#IF DEFINED(__FB_LINUX__)
    ...
#ELSEIF DEFINED(__FB_WIN32__)
    ...
#ELSE
    #error "Unsupported platform"
#ENDIF

DOS is not supported by TSNE.
sir_mud
Posts: 1401
Joined: Jul 29, 2006 3:00
Location: US
Contact:

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby sir_mud » May 29, 2013 11:35

I found this with a quick google: https://code.google.com/p/mtcp/ but it looks to be written for C++

*edit*
I translated this header: http://jafile.com/uploads/sir_mud/dos_tcp.bi awhile back but can't recall what the corresponding library was.
monochromator
Posts: 42
Joined: Mar 05, 2013 5:37

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby monochromator » Jun 13, 2013 13:40

First of all, you must convert NDIS interface into "packet driver interface".
This is done via a special program bridge.
This is one of them, in my opinion, the best - DIS_PKT9: http://www.filewatcher.com/b/ftp/ftp.ka ... Drv-0.html.
This is 9 version, it is rather old. In my experience, this work very good.
There is also a newer version - 11. If you need it, try to find it yourself.

After that, you'll have a lot of different alternatives.
There are main of them:

1. Use Trumpet TCP/IP stack for DOS: http://www.pld.ttu.ee/~priidu/library/net/trumpet.html.
2. Use some socket library for DJGPP, for example, Watt-32 or libsocket. (can be downloaded from DJGPP FTP server).
D.J.Peters
Posts: 7852
Joined: May 28, 2005 3:28

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby D.J.Peters » Jun 14, 2013 1:26

sir_mud wrote:I translated this header: http://jafile.com/uploads/sir_mud/dos_tcp.bi awhile back but can't recall what the corresponding library was.
May be WATT-32 ?
http://www.erickengelke.com/wattcp/

Joshy
rugxulo
Posts: 216
Joined: Jun 30, 2006 5:31
Location: Usono (aka, USA)
Contact:

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby rugxulo » Jun 24, 2013 19:21

D.J.Peters wrote:
sir_mud wrote:I translated this header: http://jafile.com/uploads/sir_mud/dos_tcp.bi awhile back but can't recall what the corresponding library was.
May be WATT-32 ?
http://www.erickengelke.com/wattcp/

Joshy


I think you meant this URL:

http://home.broadpark.no/~gvanem/

To quote the author (from comp.os.msdos.djgpp on June 12, 2013):

Gisle Vanem wrote:I just compiled that old version with djgpp 2.04 and gcc 4.8.1.
But I had to make 1 change; the ./util/dj_err.exe program needed
to be recomiled with:
make -f errnos.mak dj_err.exe

before doing a "configur.bat djgpp" in ./src. That's because djgpp 2.04
did change some <errno.h> values since dj_err.exe was built in 2006.
And the '-gcoff' flag in src/Makefile.all should be dropped. Otherwise
I'm not aware of any programs with this old package.

I know it's been a long time (2006) since my Watt-32 was released
last time. It's no longer a demand for any DOS versions of it. But
I'm still working on it from time to time. Expesially supporting Win32
and Win64 targets using esp. MingW.
rugxulo
Posts: 216
Joined: Jun 30, 2006 5:31
Location: Usono (aka, USA)
Contact:

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby rugxulo » Jun 24, 2013 19:23

sir_mud wrote:I found this with a quick google: https://code.google.com/p/mtcp/ but it looks to be written for C++


IIRC, it's written in C for OpenWatcom (and GPLv3), meant for embedding into 16-bit apps only. I've only briefly tested it under VirtualBox + FreeDOS.
Dinosaur
Posts: 1308
Joined: Jul 24, 2005 1:13
Location: Searcy AR USA
Contact:

Re: Using TCP/IP - DOS networking with NDIS drivers

Postby Dinosaur » Jul 05, 2013 3:08

Hi All

CpcDos I have an old project that I wrote to test the Ethernet I/F before implementing it
into some of my machines.(Linking 5 cpu boards as master slave arrangement)
If you PM me then I will send you a link where to get the zip file.
It compiles with the latest FB version.
Don't ask me how it works as it is 13 years old and I am currently retired and sitting on a sunny riverbank
in Queensland outside our Caravan.

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 1 guest