change .slave to .cslave

This commit is contained in:
Cloud Wu
2014-08-12 21:41:28 +08:00
parent f69f6e8e70
commit cfe8b19c8a
2 changed files with 5 additions and 5 deletions

View File

@@ -4,15 +4,15 @@ local harbor = {}
function harbor.globalname(name, handle) function harbor.globalname(name, handle)
handle = handle or skynet.self() handle = handle or skynet.self()
skynet.send(".slave", "lua", "REGISTER", name, handle) skynet.send(".cslave", "lua", "REGISTER", name, handle)
end end
function harbor.link(id) function harbor.link(id)
skynet.call(".slave", "lua", "LINK", id) skynet.call(".cslave", "lua", "LINK", id)
end end
function harbor.connect(id) function harbor.connect(id)
skynet.call(".slave", "lua", "CONNECT", id) skynet.call(".cslave", "lua", "CONNECT", id)
end end
return harbor return harbor

View File

@@ -17,7 +17,7 @@ skynet.start(function()
if not ok then if not ok then
skynet.abort() skynet.abort()
end end
skynet.name(".slave", slave) skynet.name(".cslave", slave)
else else
if standalone then if standalone then
@@ -30,7 +30,7 @@ skynet.start(function()
if not ok then if not ok then
skynet.abort() skynet.abort()
end end
skynet.name(".slave", slave) skynet.name(".cslave", slave)
end end
if standalone then if standalone then