Skip to content
hishamhmPublic
forked from lunarmodules/copas

About

Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

224 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copas 2.0
(http://keplerproject.github.io/copas)

Copas is a dispatcher based on coroutines that can be used for asynchroneous networking. For example TCP or UDP based servers. But it also features timers and client support for http(s), ftp and smtp requests.

It uses LuaSocket as the interface with the TCP/IP stack and LuaSec for ssl support.

A server or thread 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.1 to 5.3, and can be downloaded from [its GitHub page](https://github.com/keplerproject/copas).

The easiest way to install Copas is through LuaRocks:
````
luarocks install copas
````

For more details see [the documentation](http://keplerproject.github.io/copas/).

About

Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages