local app = coroutine.create(function (skt, addr) print("Connection from " .. addr.host .. ":" .. addr.port) skt:rawsend "> " print("Received: " .. skt:receive()) skt:send("Ok") end) print "+-----------------------------------------+" print "| This is Kraken 8.01.0 test |" print "| |" print "| Please try to connect to localhost:8001 |" print "| and send some text. |" print "| |" print "| Use C-c to abort. |" print "+-----------------------------------------+" print "" assert(kraken.registerApplication(app)) assert(kraken.registerAddress { host = "*", port = 8001 }) assert(kraken.loop())