mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
hello world
This commit is contained in:
12
main.lua
Normal file
12
main.lua
Normal 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")
|
||||
Reference in New Issue
Block a user