KRAKEN Rodrigo Cacilhas %%mtime(%Y.%m.%d) %!target: man %!encoding: utf-8 %!options: -o kraken.1 = NAME = Kraken - dispatcher for LuaWsgi = SYNOPSIS = kraken script.lua = DESCRIPTION = Kraken is a simple dispatcher that allows the programmers develop their own network servers with no need thinking about socket problems. Kraken is the low-level part of the LuaWsgi Project, but it can be used apart. Portuguese speakers can refer to LuaWsgi Changelog for more informations: http://luawsgi.blogspot.com/ = EXAMPLE = ``` local app = coroutine.create(function (skt, addr) print("Connection from " .. addr.host .. ":" .. addr.port) skt:rawsend "> " print("Received: " .. skt:receive()) skt:send("Ok\n") end) assert(kraken.registerApplication(app)) assert(kraken.registerAddress { host = "*", port = 8001 }) assert(kraken.loop()) ``` = FILES = Before read the script, Kraken reads and run the ``/etc/kraken.lua`` file. Kraken can use Lua modules. = BUGS = Kraken does not works with LuaSocket. % vim: tw=72