delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/11/01:58:23

Date: Tue, 11 Jun 1996 08:50:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Rich Deighton <rad AT lucel DOT demon DOT co DOT uk>
Cc: djgpp AT delorie DOT com
Subject: Re: I/O Multiplexor
In-Reply-To: <Pine.LNX.3.91.960603161851.427A-100000@lucel.demon.co.uk>
Message-Id: <Pine.SUN.3.91.960611084455.4508D-100000@is>
Mime-Version: 1.0

On Mon, 3 Jun 1996, Rich Deighton wrote:

> I was looking for select() so that I could, at regular intervals, poll a set
> of file descriptors for input. The tcp library not only re-defines fd_set,
> select, etc but also doesn't use "valid" file descriptors. Therefore you can't
> use one select call for a set of fd's containing sockets as well as stdio 
> handles. This makes things a tad messy.

The DJGPP `select' has support for filesystem extensions (look at its
source in the libc source distribution).  I think those extensions (also
supported by other relevant file I/O functions in the library) are the
proper way to implement the TCP/IP support.  You might consider reading
the node ``File System Extensions'' in the libc on-line docs to get an
insight into this mechanism.  With a bit of work, you could probably
change the low-level functions of that TCP library so that they'd be
compatible with the filesystem extensions paradigm, and use the rest as
is. 

- Raw text -


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