[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: About luasocket and receive(..) patterns
- From: Valerio Schiavoni <valerio.schiavoni@...>
- Date: Wed, 27 Jan 2010 15:39:53 +0100
Hello,
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 ?
Thanks,
valerio