Skip to content
Proyectos

Acerca de

Copas es un despachador basado en corrutinas que pueden utilizar los servidores TCP/IP.

Sistemas e infraestructura

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Copas 4.12

Unix build Coveralls code coverage Luacheck SemVer Licence

Copas is a dispatcher based on coroutines that can be used for asynchronous 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 (MIT), and can be downloaded from its GitHub page.

The easiest way to install Copas is through LuaRocks:

luarocks install copas

For more details see the documentation.

Releasing a new version

  • update changelog in docs (index.html, update history and status sections)
  • update version in copas.lua
  • update version at the top of this README,
  • update copyright years if needed (in license.html and copas.lua)
  • update cvs rockspec, and create a new rockspec in ./rockspec
  • create a release branch and commit as release X.Y.Z
  • create PR and wait for merge
  • tag as vX_Y_Z and as X.Y.Z
  • push commit and tag
  • upload to luarocks
  • test luarocks installation

Explorar proyectos relacionados

Cargando…