mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
multicast support
This commit is contained in:
12
service/testgroup_c.lua
Normal file
12
service/testgroup_c.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
local skynet = require "skynet"
|
||||
local id = ...
|
||||
|
||||
skynet.dispatch(function (msg,sz)
|
||||
print(id, skynet.tostring(msg,sz))
|
||||
end
|
||||
)
|
||||
|
||||
skynet.start(function()
|
||||
print("start",id)
|
||||
skynet.enter_group(1)
|
||||
end)
|
||||
Reference in New Issue
Block a user