mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
change .slave to .cslave
This commit is contained in:
@@ -4,15 +4,15 @@ local harbor = {}
|
||||
|
||||
function harbor.globalname(name, handle)
|
||||
handle = handle or skynet.self()
|
||||
skynet.send(".slave", "lua", "REGISTER", name, handle)
|
||||
skynet.send(".cslave", "lua", "REGISTER", name, handle)
|
||||
end
|
||||
|
||||
function harbor.link(id)
|
||||
skynet.call(".slave", "lua", "LINK", id)
|
||||
skynet.call(".cslave", "lua", "LINK", id)
|
||||
end
|
||||
|
||||
function harbor.connect(id)
|
||||
skynet.call(".slave", "lua", "CONNECT", id)
|
||||
skynet.call(".cslave", "lua", "CONNECT", id)
|
||||
end
|
||||
|
||||
return harbor
|
||||
|
||||
@@ -17,7 +17,7 @@ skynet.start(function()
|
||||
if not ok then
|
||||
skynet.abort()
|
||||
end
|
||||
skynet.name(".slave", slave)
|
||||
skynet.name(".cslave", slave)
|
||||
|
||||
else
|
||||
if standalone then
|
||||
@@ -30,7 +30,7 @@ skynet.start(function()
|
||||
if not ok then
|
||||
skynet.abort()
|
||||
end
|
||||
skynet.name(".slave", slave)
|
||||
skynet.name(".cslave", slave)
|
||||
end
|
||||
|
||||
if standalone then
|
||||
|
||||
Reference in New Issue
Block a user