mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
setenv
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user