delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/06/18:12:21

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: New DJGPP User - Install Questions
Date: Mon, 06 Aug 2001 22:08:33 +0100
Lines: 24
Message-ID: <3B6F0751.EFD48245@phekda.freeserve.co.uk>
References: <SnCb7.23264$Fk7 DOT 223211 AT news DOT indigo DOT ie>
NNTP-Posting-Host: modem-38.calcium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg4.svr.pol.co.uk 997132580 10671 62.136.19.38 (6 Aug 2001 21:16:20 GMT)
NNTP-Posting-Date: 6 Aug 2001 21:16:20 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 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.

Peter Nolan wrote:
> Q2.  The application includes socket.h which is in the sys include
> directory.  socket.h includes winsock.h.  However, there is no winsock.h
> installed in my version of DJGPP.  Where should winsock.h be?

sys/socket.h is one of the header files for BSD sockets networking. BSD
sockets are one of the standard programming interfaces for networking on
Unix. DJGPP does not come with a BSD socket library. There are several
libraries available for DJGPP that implement BSD sockets - see section
22.4 (I think) of the DJGPP FAQ for a list of such libraries.

winsock.h is the header file for Winsock networking, which is mostly
similar to BSD sockets networking. There are no libraries that provide the
Winsock API to DJGPP programs, I'm afraid.

Perhaps your program can be built using only the BSD sockets interface?

Hope that helps, bye,

-- 
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019