lua-users home
lua-l archive

Re: selecting sockets and serials

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


On Mon, Oct 15, 2012 at 11:39 PM, Thijs Schreijer
<thijs@thijsschreijer.nl> wrote:
>
> So far I've been using visual studio, but would switching to cygwin or the
> likes be a workaround to make it work on windows?
One way would be to use an async serial interface. Winapi has a simple one:
http://stevedonovan.github.com/winapi/api.html#open_serial
It returns a File object which has a read_async method (backed by a thread)
Not _exhaustively_ tested, so your milleage may vary ;)
steve d.

AltStyle によって変換されたページ (->オリジナル) /