delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/04/20/14:24:35

Date: Wed, 20 Apr 1994 13:33:50 +0500
From: ronis AT onsager (David Ronis)
To: sandmann AT clio DOT rice DOT edu
Subject: Re: Free TCP/IP, Sockets for DJGPP ?
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

There is a more or less complete sockets library (both AF_UNIX and
AF_INET) for djgpp that was released by Quarterdeck.  You can find it
on qdeck.com.  Its free, and also comes with X, although you have to be
running Desqview/X to use any of the routines.  I use it all the time
and have managed to port (or write) several network based programs.  In
addition, the AF_UNIX protocol, coupled with DV/X's multitasking
capabilities allow for relatively simple real implementations of pipe()
and fork().

The only drawback to quarterdeck's implementation is that you can't use
the regular read(), close(), and write() functions on socket
descriptors.  I get around this either by 1) writing a wrapper to
determine if the descriptor is really a socket, and then use the
appropriate I/O routine, or 2) by using macros that do the same.  The
latter is fine for code that I write from scratch, but the former is
necessary when porting.

David Ronis

- Raw text -


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