Overview
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 is free software and uses the same license as Lua 5.
Status
Current version is 1.1. It was developed for Lua 5.0.
Download
Copas can be downloaded from its LuaForge page.
CVS access is also available from LuaForge.
Dependencies
Copas 1.1 depends only on LuaSocket 2.0 and Compat-5.1 Release 5 (if you are using Lua 5.0).
History
- 1.1 [20/Sep/2006]
- copas.addthread() added
- 1.0 [17/May/2005]
- copas.step() added
- 1.0 Beta[17/Feb/2005]
- First public version
Credits
Copas was designed and implemented by André Carregal and Javier Guerra as part of the Kepler Project which holds its copyright. Copas development had significative contributions from Diego Nehab, Mike Pall, David Burgess and Leonardo Godinho.
Contact us
For more information please contact us. Comments are welcome!
You can also reach other Kepler developers and users on the Kepler Project mailing list.