gate launch by watchdog

This commit is contained in:
云风
2012-08-09 19:58:23 +08:00
parent 8556d5225e
commit d3f92b32d5
6 changed files with 43 additions and 21 deletions

View File

@@ -4,11 +4,11 @@ local client = ...
skynet.dispatch(function(msg, sz , session, address)
local message = skynet.tostring(msg,sz)
if session == 0 then
print("client command",msg)
local result = skynet.call("SIMPLEDB",msg)
print("client command",message)
local result = skynet.call("SIMPLEDB",message)
skynet.send(client, result)
else
print("server command",msg)
print("server command",message)
if msg == "CLOSE" then
skynet.kill(client)
skynet.exit()