GithubHelp home page GithubHelp logo

luadist / copas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lunarmodules/copas

1.0 8.0 0.0 323 KB

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

Home Page: http://www.keplerproject.org/copas

Lua 100.00%

copas's Introduction

Copas 1.2.1
(http://www.keplerproject.org/copas)

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.1 and 5.2

Copas can be downloaded from its GitHub page.

You can also install Copas using LuaRocks:
luarocks install copas

Dependencies
Copas depends on LuaSocket and Coxpcall 1.14.

History

Copas 1.2.1 [07/Jan/2014]
* Fixed bad version constant
* Fixed timer issue
* Updated documentation

Copas 1.2.0 [2013]
* Support for Lua 5.2
* UDP support
* suspending threads
* other minor updates

Copas 1.1.6 [18/Mar/2010]
* Now checks to see if socket.http was required before copas 

Copas 1.1.5 [07/Apr/2009]
* Fixed bug reported by Sam Roberts on the Kepler list

Copas 1.1.4 [10/Dec/2008]
* Fixed bug [#5372] - copas.connect is semi-broken (found by Gary ng)

Copas 1.1.3 [19/May/2008]
* Using copcall instead of pcall in socket.protect (feature request [#5274] by Gary NG)

Copas 1.1.2 [15/May/2008]
* Fixed Bug [#4249] - bugs in copas.receive (found by Gary NG)

Copas 1.1.1 [13/Aug/2007]
* Compatible with Lua 5.1
* Refactored by Thomas Harning Jr. (for more details check Bug 766)
* Patch by Gary NG concerning the handling of stopped sockets

Copas 1.1 [20/Sep/2006]
* copas.addthread() added

Copas 1.0 [17/May/2005]
* copas.step() added

Copas 1.0 Beta[17/Feb/2005]
* First public version

copas's People

Contributors

bigcrush avatar davidm avatar drahosp avatar hishamhm avatar mascarenhas avatar shmuelzon avatar tieske avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.