mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
skynet support session in message
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
local skynet = require "skynet"
|
||||
|
||||
skynet.callback(function(addr,content)
|
||||
if content == nil then
|
||||
print("sn:",addr)
|
||||
skynet.command("TIMEOUT","100:"..tostring(addr+1))
|
||||
end
|
||||
skynet.callback(function(session,addr,content)
|
||||
print("sn:",session)
|
||||
skynet.command("TIMEOUT", -1 , "100")
|
||||
end)
|
||||
|
||||
skynet.command("TIMEOUT","0:0")
|
||||
skynet.command("TIMEOUT",0,"0")
|
||||
Reference in New Issue
Block a user