This commit is contained in:
云风
2013-12-09 17:54:46 +08:00
parent 340148c152
commit f7242294dd
6 changed files with 128 additions and 22 deletions

9
service/testping.lua Normal file
View File

@@ -0,0 +1,9 @@
local skynet = require "skynet"
skynet.start(function()
local ps = skynet.uniqueservice("pingserver")
skynet.watch(ps)
print(skynet.call(ps, "lua", "PING", "hello"))
skynet.send(ps, "lua", "EXIT")
print(skynet.call(ps, "lua", "PING", "hay"))
end)