change source dir

This commit is contained in:
云风
2012-08-09 15:36:56 +08:00
parent d23c4aa905
commit eed9c42fd4
46 changed files with 284 additions and 118 deletions

16
service/console.lua Normal file
View File

@@ -0,0 +1,16 @@
local skynet = require "skynet"
skynet.dispatch()
skynet.start(function()
while true do
local cmd = io.read()
local handle = skynet.launch(cmd)
if handle == nil then
print("Launch error:",cmd)
else
print("Launch:",handle,cmd)
end
skynet.yield()
end
end)