hello world

This commit is contained in:
云风
2012-08-01 11:33:10 +08:00
commit 8ef978d0eb
36 changed files with 2858 additions and 0 deletions

14
console.lua Normal file
View File

@@ -0,0 +1,14 @@
local skynet = require "skynet"
skynet.callback(function()
local cmd = io.read()
local handle = skynet.command("LAUNCH",cmd)
if handle == nil then
print("Launch error:",cmd)
else
print("Lauch:",handle)
end
skynet.command("TIMEOUT","0:0")
end)
skynet.command("TIMEOUT","0:0")