[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: socket.select - non-blocking IO on a serial port
- From: Petr Štetiar <ynezz@...>
- Date: Thu, 25 Nov 2010 09:15:54 +0100
email@example.com <firstname.lastname@example.org> [2010-11-24 17:34:27]:
> I'm trying to use the trick of wrapping a file descriptor for a serial
> port in a dummy socket and then using socket.select to do non-blocking
> IO on it.
I don't know if it's what are you looking for, but there's rs232 library
for Lua. I think, that adding the non-blocking read/write wouldn't be that
hard, I would say few lines of code. And I would welcome such contribution :-)
BTW I don't know if it's even possible to do that in pure Lua.