lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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