lua-users home
lua-l archive

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


Copas is a dispatcher based on coroutines that can be used by TCP/IP
servers. It uses LuaSocket as the interface with the TCP/IP stack.

A server registered with Copas should provide a handler for requests and use
Copas socket functions to send the response. Copas loops through requests
and invokes the corresponding handlers. For a full implementation of a Copas
HTTP server you can refer to Xavante as an example.

Copas 1.1 uses Compat-5.1 Release 5 and includes a new method
copas.addthread() to allow threads to be executed in parallel with other
threads and the registered handlers as long as it uses the Copas socket
functions.

Copas is part of the Kepler Project and can be found at
http://www.keplerproject.org/copas

Copas is free software, using the same license as Lua 5.0, and follows the
package proposal for Lua 5.1 (using Compat-5.1).

Any comments and feedback are welcome.

André Carregal
Javier Guerra