support multi protocol

This commit is contained in:
云风
2012-08-31 21:18:19 +08:00
parent 1ee802c5c5
commit 0a886cd57c
47 changed files with 542 additions and 520 deletions

View File

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