Re: TCP non-blocking read

James Morris (jmorris@intercode.com.au)
Tue, 9 Nov 1999 14:09:28 +1100 (EST)


On Mon, 8 Nov 1999, pramodh mallipatna wrote:

> Hi,
>
> I had a question regarding non-blocking read in a TCP socket program.
> I have the code below.
>
> The non-blocking code works, but, I see that the "perror("Read");" in my
> server returns "Resource temporarily unavailable" instead of "success".
> Is this normal?

Yep, check for EAGAIN as the normal 'error' on a blocking read.

- James.

--
James Morris
<jmorris@intercode.com.au>

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu