mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
rewrite makefile, and remove luacode cache.
This commit is contained in:
10
test/testping.lua
Normal file
10
test/testping.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
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"))
|
||||
print(skynet.call(ps, "lua", "PING", "hay"))
|
||||
skynet.send(ps, "lua", "EXIT")
|
||||
end)
|
||||
Reference in New Issue
Block a user