Mailinglist Archive: opensuse-programming (33 mails)

< Previous Next >
Re: [suse-programming-e] EAGAIN on a blocking socket?
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Thu, 02 Mar 2006 20:00:05 +0100
  • Message-id: <du7fbl$kbe$3@xxxxxxxxxxxxxxxx>
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

< Previous Next >
List Navigation