mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
add cluster.proxy and cluster.ncall
This commit is contained in:
@@ -36,7 +36,11 @@ function harbor.REGISTER(name, handle)
|
||||
skynet.redirect(harbor_service, handle, "harbor", 0, "N " .. name)
|
||||
end
|
||||
|
||||
function harbor.QUERYNAME(fd, name)
|
||||
function harbor.QUERYNAME(name)
|
||||
if name:byte() == 46 then -- "." , local name
|
||||
skynet.ret(skynet.pack(skynet.localname(name)))
|
||||
return
|
||||
end
|
||||
local result = globalname[name]
|
||||
if result then
|
||||
skynet.ret(skynet.pack(result))
|
||||
|
||||
Reference in New Issue
Block a user