support multi protocol

This commit is contained in:
云风
2012-08-31 21:18:19 +08:00
parent 1ee802c5c5
commit 0a886cd57c
47 changed files with 542 additions and 520 deletions

View File

@@ -37,8 +37,9 @@ local function log(name, modname, level, timestamp, msg, src, tags)
})
end
skynet.dispatch(function(msg, sz , session , from)
log(skynet.unpack(msg,sz))
skynet.start(function()
skynet.dispatch("lua",function(session, from, ...)
log(...)
end)
skynet.register ".lualog"
end)
skynet.register ".lualog"