[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua and networking - possibly basic question
- From: Adrian Sietsma <adrian_groups@...>
- Date: Thu, 27 Oct 2005 09:31:18 +1000
Steve Kemp wrote:
I've been embedding Lua 5.0 into a lot of local applications
recently and find it very nice to work with.
For some software I'm working with I'm looking to add basic
networking facilities, similar to the primitives people
are used to :
(I have no need for the bind() or accept() primitives.)
How do other people approach this problem? (In composing this
mail I did a few searchs and see the existance of LuaSocket - this
might help me, if I can embed it within my code. Too soon to tell,
but my natural reaction is to think that is overkill ...)
use LuaSocket. You probably won't need http, ftp etc; but why re-invent the
wheel ? (you can always leave out the unused bits).
even if you are driven to roll your own socket implementation, you should
still read the luasocket c source to see how Diego did it.
(i have a co-routine threaded http proxy built on LuaSocket, and it is 100%
reliable for my usage case).