lunarmodules/copas
关于
Copas 是一个基于协程的调度器,可供 TCP/IP 服务器使用。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Copas 4.12
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, updatehistoryandstatussections) - update version in
copas.lua - update version at the top of this README,
- update copyright years if needed (in
license.htmlandcopas.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_Zand asX.Y.Z - push commit and tag
- upload to luarocks
- test luarocks installation
探索相关项目
加载中…