simple rpc support

This commit is contained in:
云风
2012-08-06 17:04:06 +08:00
parent 594ab07b5e
commit b33d438715
18 changed files with 266 additions and 73 deletions

12
testdb.lua Normal file
View File

@@ -0,0 +1,12 @@
local skynet = require "skynet"
-- register a dummy callback function
skynet.dispatch()
skynet.start(function()
local result = skynet.call("SIMPLEDB","SET foobar hello")
print(result)
result = skynet.call("SIMPLEDB","GET foobar")
print(result)
skynet.exit()
end)