Mail Archives: djgpp/2001/02/01/23:56:26
Hello.
Tom St Denis wrote:
>
> In article <3A7876BC DOT 2060603 AT operamail DOT com>,
> Sahab Yazdani <sahaby AT operamail DOT com> wrote:
> > okay, I'm wondering, how did the original Quake manage to make
> > networking under DOS work??? i know it opened up some kind of portal
> > into Windows and then used that as its transport, but HOW???? anybody
> > know, care to tell the rest of us????
>
> No they didn't.
>
> Only winquake supports TCP/IP games.
Bzzzzzzzzz.....wrong! Quake does not actually use TCP - it uses UDP over
IP. Quake for DOS can do UDP over IP under Windows.
To answer Sahab Yazdani's question: I had a look at the Quake sources a
while back, to see if I could use the same methods as Quake did, to get
access to Winsock. It uses a combination of a virtual device driver (VxD)
and a DLL to provide Winsock access. You need to run the launcher program
to load the DLL. Quake for DOS then loads the VxD to communicate with the
DLL, which then uses Winsock. The VxD had a good interface.
It's a shame it didn't do TCP as well, otherwise I would have written a
libsocket interface for it. Of course, there are legal issues to, which
means you probably can't use it unless you own Quake for DOS, to obtain
the VxD.
Bye,
--
Richard Dawe <richdawe AT bigfoot DOT com> http://www.bigfoot.com/~richdawe/
"The soul is the mirror of an indestructible universe."
--- Gottfried W. Leibniz
- Raw text -