Files
skynet/testtimer.lua
2012-08-01 11:33:10 +08:00

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