[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: About luasocket and receive(..) patterns
- From: Sam Roberts <vieuxtech@...>
- Date: Wed, 27 Jan 2010 10:14:15 -0800
On Wed, Jan 27, 2010 at 7:05 AM, gary ng <garyng2000@yahoo.com> wrote:
> add it back yourself may be ?
You can't, you don't know whether it was a CRLF or just a LF, or where
CRs were dropped.
To OP: I think you'll have to read fixed size blocks, setting the
timeout to zero, and when it fails to read all the data get the
partial block from the third argument. luasocket is pretty good, but
can get quite hard to use outside of the IETF line oriented protocols
it appears to have been designed for.
Sam