lua-users home
lua-l archive

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


On Friday, February 29, 2008 Diego Nehab wrote: 

>> Is LusSocket mechanism flexible enough to handle local
>> sockets and file I/O?

> Local sockets, definitely. File I/O I don't see why not. I
> wonder if the OS implements non-blocking I/O on regular
> files. I have heard on this list that this is usually not
> the case. It will be fun to test.

Windows IOCP makes it pretty easy to use regular files, pipes, 
sockets, and timers. 

http://lua-users.org/lists/lua-l/2006-01/msg00613.html

One difficulty with Lua file library compatibility is buffered io, 
e.g., file:read("*l").

e

-- 
Doug Currie
Londonderry, NH, USA