add snax.self and snax.exit

This commit is contained in:
Cloud Wu
2014-11-14 15:11:05 +08:00
parent 8e4a175155
commit b9e06dc065
3 changed files with 14 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
local skynet = require "skynet"
local queue = require "skynet.queue"
local snax = require "snax"
local i = 0
local hello = "hello"
@@ -32,6 +33,10 @@ function accept.hello()
end)
end
function accept.exit(...)
snax.exit(...)
end
function response.error()
error "throw an error"
end