lunarmodules/copas
소개
Copas는 코루틴 기반 디스패처로, TCP/IP 서버에서 사용할 수 있습니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCopas 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
관련 프로젝트 살펴보기
불러오는 중…