From: blade DOT runner DOT shoots AT another DOT spam DOT bot (Alfons Hoogervorst) Newsgroups: comp.os.msdos.djgpp Subject: Re: WinSock in Dos with WIn95 Date: Sun, 12 Jan 1997 23:16:40 GMT Organization: The Programming with Puns Facility Lines: 33 Message-ID: <32d94f0f.1882488@news.worldaccess.nl> References: <199701102157 DOT VAA13896 AT mx2 DOT rmplc DOT co DOT uk> NNTP-Posting-Host: dev1-7.worldaccess.nl To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Lo "Liam" : >Is it possible that these files could in any way be used with djgpp? Pretty useless for DJGPP users. >Or is someone writing a Winsock library for djgpp? There's an unfinished socket API implementation based on WatTCP. DJ Delorie mentioned it in one of his articles. Dan Hedlund's code demonstrates how to interface with the WSOCK.VXD in DOS-programs running in a Windows DOS-box. Just a few more notes about the WSOCK.VXD interface: - it does not "export" socket database functions. I.e. no gethostbyname(), gethostbyaddr(). So you either need to know the numeric IP address or write the resolver functions yourself. - before you write a resolver, there's also the problem of getting the domain name server (and other relevant data) for the current RAS connection. That can be rather tricky. There are several options for doing this, one of them is hoping that the ISP server has a BOOTP or DHCP server running. Bye. -------------mailto:proteus AT worldaccess DOT nl------------ Hoogervorst, Alfons; systems programmer, word player avant la lettre ------------------------------------------------------- One cast makes you long, and one cast makes you short -------------------------------------------------------