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!
Using TCP/IP - DOS networking with NDIS drivers
Re: Using TCP/IP - DOS networking with NDIS drivers
I didn't test it yet. But TSNE is based on CLib and should run under DOS:
Re: Using TCP/IP - DOS networking with NDIS drivers
DOS is not supported by TSNE.TSNE_V3.bi wrote:Code: Select all
#IF DEFINED(__FB_LINUX__) ... #ELSEIF DEFINED(__FB_WIN32__) ... #ELSE #error "Unsupported platform" #ENDIF
Re: Using TCP/IP - DOS networking with NDIS drivers
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.
*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.
-
- Posts: 42
- Joined: Mar 05, 2013 5:37
Re: Using TCP/IP - DOS networking with NDIS drivers
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).
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).
-
- Posts: 8586
- Joined: May 28, 2005 3:28
- Contact:
Re: Using TCP/IP - DOS networking with NDIS drivers
May be WATT-32 ?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.
http://www.erickengelke.com/wattcp/
Joshy
Re: Using TCP/IP - DOS networking with NDIS drivers
I think you meant this URL:D.J.Peters wrote:May be WATT-32 ?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.
http://www.erickengelke.com/wattcp/
Joshy
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.
Re: Using TCP/IP - DOS networking with NDIS drivers
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.sir_mud wrote:I found this with a quick google: https://code.google.com/p/mtcp/ but it looks to be written for C++
Re: Using TCP/IP - DOS networking with NDIS drivers
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.
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.