Subject: Re: Erroneous TCPIP filedescriptors
To: Thomas Page <ThomasP@cat.co.za>
From: Hubert Feyrer <firstname.lastname@example.org>
Date: 07/06/1999 21:40:33
On Tue, 6 Jul 1999, Thomas Page wrote:
> The problem I have is that: after a connection is made, then control
> reverts back to the main program, and ultimately sits waiting for action
> in the 'select', as it enters the select, the fd for the TCP causes a
> 'Bad File Descriptor' from strerror(errno).
> 1) Is it OK to use select for more than just making connections?
Um, you don't make connections with select(2), you just "wait" with it for
a set of descriptors to become read/writable.
> 2) Is there some other lurking error, I've had 'TCP persistance'
> mentioned, bearing in mind that the problem is erratic.
No idea what this is.
I'm not an expert in network programming, but maybe you want to have a
look at the new (2nd) edition of Richard Stevens: Unix Network
Programming. It contains discussion on a lot of these topics.
NetBSD - Better for your uptime than Viagra