skynet.call capture error

This commit is contained in:
云风
2013-12-10 15:20:03 +08:00
parent 4a49346da8
commit c07f4df172
4 changed files with 33 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ local skynet = require "skynet"
skynet.start(function()
local ps = skynet.uniqueservice("pingserver")
skynet.watch(ps)
print(pcall(skynet.call,ps,"lua","ERROR"))
print(skynet.call(ps, "lua", "PING", "hello"))
skynet.send(ps, "lua", "EXIT")
print(skynet.call(ps, "lua", "PING", "hay"))