mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
添加get_protocol接口 (#1712)
* 添加get_protocol接口 * 添加_proto字段 --------- Co-authored-by: zixun <lb151450@alibaba-inc.com>
This commit is contained in:
@@ -45,6 +45,7 @@ local skynet = {
|
|||||||
|
|
||||||
-- code cache
|
-- code cache
|
||||||
skynet.cache = require "skynet.codecache"
|
skynet.cache = require "skynet.codecache"
|
||||||
|
skynet._proto = proto
|
||||||
|
|
||||||
function skynet.register_protocol(class)
|
function skynet.register_protocol(class)
|
||||||
local name = class.name
|
local name = class.name
|
||||||
|
|||||||
Reference in New Issue
Block a user