2 Mar
2006
2 Mar
'06
19:00
Jerry Feldman wrote:
Both fgets(3) and fputs(3) are buffered streams, but you are using select(2).
But I'm only using select for the read status, not the write. Besides, using select() in combination with reading from a buffered stream should be perfectly fine.
I would avoid the use of streams even though an C stream is attached to a valid file descriptor (or socket). I would use either write(2), read(2), send(2), or recv(2) directly.
Well, yeah - except it just complicates things unnecessarily. /Per Jessen, Zürich