.TH "KRAKEN" 1 "2008.01.13" "Rodrigo Cacilhas" .SH NAME .P Kraken \- dispatcher for LuaWsgi .SH SYNOPSIS .P kraken script.lua .SH DESCRIPTION .P Kraken is a simple dispatcher that allows the programmers develop their own network servers with no need thinking about socket problems. .P Kraken is the low\-level part of the LuaWsgi Project, but it can be used apart. .P Portuguese speakers can refer to LuaWsgi Changelog for more informations: http://luawsgi.blogspot.com/ .SH EXAMPLE .nf local app = aoroutine.create(function (skt, addr) print("Connection from " .. addr.host .. ":" .. addr.port) skt:rawsend "> " print("Received: " .. skt:receive()) skt:send("Ok\en") end) assert(kraken.registerApplication(app)) assert(kraken.registerAddress { host = "*", port = 8001 }) assert(kraken.loop()) .fi .SH FILES .P Before read the script, Kraken reads and run the /etc/kraken.lua file. .P Kraken can use Lua modules. .SH BUGS .P Kraken does not works with LuaSocket. .\" man code generated by txt2tags 2.3 (http://txt2tags.sf.net) .\" cmdline: txt2tags kraken.t2t