Files
skynet/examples/main.lua
Cloud Wu ceeb9912bf typo
2014-06-26 14:04:57 +08:00

18 lines
376 B
Lua

local skynet = require "skynet"
local max_client = 64
skynet.start(function()
print("Server start")
local console = skynet.newservice("console")
skynet.newservice("debug_console",8000)
skynet.newservice("simpledb")
local watchdog = skynet.newservice("watchdog")
skynet.call(watchdog, "lua", "start", {
port = 8888,
maxclient = max_client,
})
skynet.exit()
end)