lua-users home
lua-l archive

Re: Writing TCP daemons in Lua (was Re: Why nobody talks about Lua)

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


It was thus said that the Great Doug Rogers once stated:
> Sean Conner wrote:
> >	http://www.conman.org/software/misc/luadaemon.tar.gz
> >	http://www.conman.org/software/cgilib/cgilib-6.0.0.tar.gz
> 
> For those who had trouble untarring them, they're gzip'd twice:
 Oh crap! That's the fault of the webserver compressing the output if your
broswer supports it. Sigh. I've added .gz to the list of resources not to
compress. Hopefully, it'll take.
> gunzip luadaemon.tar.gz
> mv luadaemon.tar luadaemon.tar.gz
> tar tzf luadaemon.tar.gz
> 
> Same for cgilib.
> 
> I like what you've done with it, recording the type of transaction that 
> each coroutine is waiting on so that it can be serviced later (if 
> necessary) when epoll() indicates the associated event has occurred.
 Thanks. It took quite a bit to get going, and I'm not totally thrilled
with the code as is, but it works.
> Thanks for posting this! It's nice to have a good example using the 
> epoll() calls; I'm an old school select()er and I need to modernize.
 I never liked select() even when it was the only option. 
 -spc

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