Mail Archives: djgpp/1996/09/02/05:29:14
Mohan Khurana <mohan AT stealth DOT net> wrote in article
<504add$7be AT news DOT stealth DOT net>...
> John Sabean <docmani AT eng DOT umd DOT edu> wrote:
>
> >As for using the Win95 TCP stack, thats tricky. The only software
> >I've seen that uses DJGPP to do that is Quake. So, it is in fact,
> >possible to do this, however, I've looked long and hard for the
> >information on how to do this and have come up with nothing.
>
> I'd also very much like to see the Windows95 TCP/IP stack used in a
> DJGPP program. If Quake does use the Windows95 TCP/IP stack and it
> truely was compiled with DJGPP, then I am sure that someone will
> eventually figure out a way to access it, atleast I hope so.
>
>
>
hmm... maybe a win32 program could be the interface between win95
tcp/ip and djgpp program. i think it could be done in the following
sequence:
1. loading winsock.dll
2. init winsock
3. code a interface function for the djgpp program to call.
4. lock the function, so i wont get swap out/relocated ( not sure on
this )
5. lanuch the djgpp program with the win32 program's cs register and
the
interface function, and go into a loop until the djgpp program ends
6. djgpp program does its thing. call the interface function with a
far call
7. win32 goes out of loop, and cleans up
i couldnt test this, since i dont have a win32 compiler to work, and
i couldnt get rsxntdj to load winsock. maybe someone with a win32
compiler could test this.
- Raw text -