On Fri, 27 Sep 2002, Satya wrote:
when you're doing a non-blocking read (using select).
Whta's good? fgets()?
if you're using select, you generally use something that will read as
how much you tell it to read, but will settle for less. fgets might
block if it reads all available data and doesn't see the newline or
I'm doing a select()ed read elsewhere. The select
call is doing
double-duty: waiting for a packet and waiting for a timeout.
yeah, I do something similar in my sample yahoo messenger client. I use
select to read from stdin, a socket, and to send a keepalive packet
every 20 minutes - at most.
These days the necessities of life cost you about three times what they
used to, and half the time they aren't even fit to drink.