This commit is contained in:
云风
2012-08-09 19:33:53 +08:00
parent 4e50079706
commit 8556d5225e
3 changed files with 42 additions and 2 deletions

View File

@@ -69,6 +69,14 @@ function skynet.kill(name)
c.command("KILL",name)
end
function skynet.getenv(key)
return c.command("GETENV",key)
end
function skynet.setenv(key, value)
c.command("SETENV",key .. " " ..value)
end
skynet.send = c.send
skynet.pack = c.pack
skynet.tostring = c.tostring