exit monitor

This commit is contained in:
云风
2013-08-06 13:44:41 +08:00
parent 6be6a8171f
commit ff6e4dc762
5 changed files with 65 additions and 10 deletions

View File

@@ -627,4 +627,9 @@ function skynet.context_ptr()
return c.context()
end
function skynet.monitor(service)
local monitor = skynet.uniqueservice(true, service)
c.command("MONITOR", string.format(":%08x", monitor))
end
return skynet