This commit is contained in:
云风
2013-12-09 17:54:46 +08:00
parent 340148c152
commit f7242294dd
6 changed files with 128 additions and 22 deletions

View File

@@ -11,6 +11,10 @@ function command.HELLO()
skynet.ret(skynet.pack("hello"))
end
function command.EXIT()
skynet.exit()
end
skynet.start(function()
skynet.dispatch("lua", function(session,addr, cmd, ...)
command[cmd](...)