mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
global group multicast
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
local skynet = require "skynet"
|
||||
local id = ...
|
||||
local group = require "mcgroup"
|
||||
local id, g = ...
|
||||
|
||||
skynet.dispatch(function (msg,sz)
|
||||
print(id, skynet.tostring(msg,sz))
|
||||
print("===>",id, skynet.tostring(msg,sz))
|
||||
end
|
||||
)
|
||||
|
||||
skynet.start(function()
|
||||
print("start",id)
|
||||
if g then
|
||||
group.enter(tonumber(g))
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user