[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: About luasocket and receive(..) patterns
- From: gary ng <garyng2000@...>
- Date: Wed, 27 Jan 2010 07:05:57 -0800 (PST)
add it back yourself may be ?
--- On Wed, 1/27/10, Valerio Schiavoni <firstname.lastname@example.org> wrote:
> From: Valerio Schiavoni <email@example.com>
> Subject: About luasocket and receive(..) patterns
> To: "Lua list" <firstname.lastname@example.org>
> Date: Wednesday, January 27, 2010, 10:39 PM
> i would like to receive a single line from a socket, but
> without \n or
> \r removed.
> In particular, from the doc it says:
> *l': reads a line of text from the socket. The line is
> terminated by a
> LF character (ASCII 10), optionally preceded by a CR
> character (ASCII
> 13). The CR and LF characters are not included in the
> returned line.
> In fact, all CR characters are ignored by the pattern.
> This is the
> default pattern;
> Nevertheless, i would like those characters not to be
> ignored. Any idea ?