lua-users home
lua-l archive

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


On 14 May 2013 12:03, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:
> Obviously better than my script using a fake socket timeout. Dunno how I missed that...
>

Even if you didn't have sleep. You can just use select with empty sets :)

    require "socket".select(nil,nil,0.5)