define max client for example

This commit is contained in:
云风
2013-12-16 13:54:29 +08:00
parent 2d8b061970
commit b6f57aee0b

View File

@@ -1,12 +1,14 @@
local skynet = require "skynet"
local max_client = 64
skynet.start(function()
print("Server start")
local service = skynet.newservice("service_mgr")
skynet.monitor "simplemonitor"
local lualog = skynet.newservice("lualog")
local console = skynet.newservice("console")
local watchdog = skynet.newservice("watchdog","8888 4 0")
local watchdog = skynet.newservice("watchdog","8888", max_client, 0)
local db = skynet.newservice("simpledb")
-- skynet.launch("snlua","testgroup")