On Thursday 20 June 2002 9:50 pm, Rev. Shamim Mohamed D.D. wrote:
>  > Can someone (Robert or Shamim?) please supply a corresponding
>  > patch for read(), to go with Robert's fix for reads()?  I guess
>  > sock_getstrg() can return EOF before a read() completes, yes?
>
> I'm looking at it.... However, I don't see that sock_getstrg() can
> return EOF before a read() completes. Since sock_getstrg() attempts to
> read a line from the socket, seems to me that this fix is only
> required for reads() and not for read() -- the former keeps reading
> lines until it has enough.
>
> Robert, do you agree?
>
> -s

I think that's right.  Certainly my patch was to the reads() function itself, 
not to the sock_getstrg() function.  As far as I can see, read() on an 
internet socket seems to work okay, unless someone has noticed a problem with 
it?

Cheers

R



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to