lua-users home
lua-l archive

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


Hi,

Copas offers a dispatcher based on coroutines that can be used by socket
request/response server programs. A server registered with Copas should
provide a handler for requests and use Copas socket functions to send the
response.

Copas is currently being used by Javier Guerra on his luahttpd web server
and by Xavante. Although the first uses of Copas are HTTP oriented, it can
be used for other protocols like FTP, SMTP etc.

Copas is free software and uses the same license as Lua 5.0. Copas 1.0
follows the package proposal for Lua 5.1.

For more information on Copas please check
http://www.keplerproject.org/copas/

Xavante's coxpcall encapsulates the protected calls with a coroutine based
loop, so errors can be dealed without the usual Lua 5.0 pcall/xpcall issues
with coroutines yielding.

coxpcall can be downloaded from http://luaforge.net/frs/?group_id=6

Any feedback is welcome!

André Carregal
www.keplerproject.org