From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: how did Quake do it??? Date: Fri, 02 Feb 2001 16:58:09 +0000 Organization: Customer of Energis Squared Lines: 34 Message-ID: <3A7AE721.CBB0D7E9@phekda.freeserve.co.uk> References: <3A7876BC DOT 2060603 AT operamail DOT com> <95bl59$et5$1 AT nnrp1 DOT deja DOT com> <3A79BA4E DOT EDE2D55 AT phekda DOT freeserve DOT co DOT uk> <3A7A0F5A DOT 60707 AT operamail DOT com> <3A7A89A7 DOT 63B76310 AT phekda DOT freeserve DOT co DOT uk> <3A7AD761 DOT 7000404 AT operamail DOT com> NNTP-Posting-Host: modem-55.amitriptyline.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news6.svr.pol.co.uk 981152939 19446 62.136.77.183 (2 Feb 2001 22:28:59 GMT) NNTP-Posting-Date: 2 Feb 2001 22:28:59 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 http://www.bigfoot.com/~richdawe/ "The soul is the mirror of an indestructible universe." --- Gottfried W. Leibniz