Mail Archives: djgpp/2001/02/02/17:41:24
Hello.
Sahab Yazdani wrote:
>
> Richard Dawe wrote:
> >
> > http://www.phekda.freeserve.co.uk/richdawe/dossock/
> >
> > The downside of using WSOCK2.VXD is that you have to patch it, to get
> > round a bug in its send()/recv() interface.
> >
>
> okay, but it says in Gabor's readme that these bugs only apply to 16 bit
> applications, so this shouldn't apply to DJGPP should it???
No, not quite, if I understand it correctly. WSOCK2.VXD has to map the
selector:offset pairs you give it into the memory space it uses. For
send(), recv() it does not do it for enough parameters, which
unfortunately breaks it. I think this bug does not affect Winsock itself,
because it also goes through a DLL then a VxD to call WSOCK2.VXD, which
means the pointers are already mapped appropriately.
If you want a definite answer, you might want to search the archives of
the dossock mailing list, because I think Gabor gave an answer to this
question there. He also explained how Winsock 2 works - the different
DLLs, VxDs involved.
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 -