> 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