mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
support multi protocol
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user