mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 11:03:12 +00:00
10 lines
211 B
Lua
10 lines
211 B
Lua
local skynet = require "skynet"
|
|
|
|
skynet.callback(function(addr,content)
|
|
if content == nil then
|
|
print("sn:",addr)
|
|
skynet.command("TIMEOUT","100:"..tostring(addr+1))
|
|
end
|
|
end)
|
|
|
|
skynet.command("TIMEOUT","0:0") |