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)
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

View File

@@ -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