global group multicast

This commit is contained in:
云风
2012-08-30 23:31:33 +08:00
parent 161528e686
commit 1ee802c5c5
17 changed files with 285 additions and 40 deletions

View File

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