snax now use independent protocol PTYPE_SNAX 11

This commit is contained in:
Cloud Wu
2014-04-28 15:52:54 +08:00
parent 45df4f2e71
commit c17ec76e94
3 changed files with 17 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ local skynet = require "skynet"
local c = require "skynet.c"
local snax_interface = require "snax_interface"
local profile = require "profile"
local snax = require "snax"
local func = snax_interface(tostring(...), _ENV)
local mode
@@ -98,7 +99,7 @@ local function timing( method, ... )
end
skynet.start(function()
skynet.dispatch("lua", function ( session , source , id, ...)
skynet.dispatch("snax", function ( session , source , id, ...)
local method = func[id]
if method[2] == "system" then