remove broker and add group command

This commit is contained in:
云风
2012-08-30 17:26:48 +08:00
parent f4a895fa6f
commit 4610781498
7 changed files with 36 additions and 129 deletions

View File

@@ -5,7 +5,8 @@ skynet.dispatch()
skynet.start(function()
local group = skynet.query_group(1)
for i=1,10 do
skynet.newservice("testgroup_c", tostring(i))
local address = skynet.newservice("testgroup_c", tostring(i))
skynet.enter_group(1 , address)
end
skynet.send(group,"Hello World")
skynet.exit()