change source dir

This commit is contained in:
云风
2012-08-09 15:36:56 +08:00
parent d23c4aa905
commit eed9c42fd4
46 changed files with 284 additions and 118 deletions

12
service/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)