hello world

This commit is contained in:
云风
2012-08-01 11:33:10 +08:00
commit 8ef978d0eb
36 changed files with 2858 additions and 0 deletions

12
main.lua Normal file
View File

@@ -0,0 +1,12 @@
local skynet = require "skynet"
print("Server start")
local console = skynet.command("LAUNCH","snlua console.lua")
print("console",console)
local watchdog = skynet.command("LAUNCH","snlua watchdog.lua")
print("watchdog",watchdog)
local gate = skynet.command("LAUNCH","gate 2525 4 0")
print("gate",gate)
skynet.command("EXIT")