From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: netbd.h, sockets.h, in.h and types.h don't work Date: Mon, 29 May 2000 22:31:20 +0100 Organization: Customer of Planet Online Lines: 40 Message-ID: <3932E1A8.8BD99916@bigfoot.com> References: <8gsqgm$k2u$2 AT bob DOT news DOT rcn DOT net> NNTP-Posting-Host: modem-189.iodine.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg3.svr.pol.co.uk 959636072 23043 62.136.44.189 (29 May 2000 21:34:32 GMT) NNTP-Posting-Date: 29 May 2000 21:34:32 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 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. Chris Lee wrote: > The solution to the problem is pretty simple. DJGPP should seriously > consider adding/intergrating the WATT32 and libnet packages to the basic > distrubtion. The addition of a networking library to DJGPP would probably add a lot of code to libc. If most people don't use networking, is it worth it? As for integration, the current networking libraries plug in quite nicely, because of the well-designed File System Extension (FSEXT) feature of DJGPP. For example, BSD sockets are created using the socket() call, which can be in the library. After that everything can be handled cleanly using a FSEXT, so DJGPP's libc does not need modifying to support sockets. The networking libraries can mostly just slot in, only needing to add some headers. So it seems that the only remaining problem is to distribute these networking libraries with DJGPP. Well, libsocket is in the v2tk/ directory on the Simtelnet archive. Perhaps Watt-32 and libnet should be placed there too. I guess the real problem is that there isn't one networking library that does all platforms DJGPP runs on: DOS, Windows 3.x, '95, '98, NT, 2000. Perhaps that will be solved one day. > It'll be a win for everybody. DJGPP will be able to compile more > programs, especially ones ported from linux, and the Watt32 and libnet > authors will get more people testing/debugging their code. I'm not convinced that adding these libraries to DJGPP would make any difference to the amount of testing they would get. IIRC libnet does not have a BSD socket interface, so that can't be used for porting. Hmmm, bye, -- Richard Dawe richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/