Re: TCP non-blocking read

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


On Mon, 8 Nov 1999, pramodh mallipatna wrote:

> Hi,
>
> Could you please elaborate? also, is it "blocking read" or "non-blocking
> read"?

Sorry, I meant non-blocking.

>
> Thanks,
> Pramodh
>
> On Tue, 9 Nov 1999, James Morris wrote:
>
> > 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
> >
>
>

--
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