Mail Archives: djgpp/1996/06/11/01:58:23
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 -