新增网络服务

This commit is contained in:
boyce
2020-02-04 16:49:03 +08:00
parent f026c0ca9e
commit 29b04d82c3
5 changed files with 94 additions and 17 deletions

View File

@@ -38,9 +38,14 @@ func main() {
}
pTcpService := sysservice.NewTcpSocketPbService(":9004")
pTcpService.SetServiceName("ls")
pTcpService2 := sysservice.NewTcpSocketPbService(":9005")
pTcpService2.SetServiceName("lc")
httpserver.SetPrintRequestTime(true)
node.SetupService(httpserver,pTcpService)
node.SetupService(httpserver,pTcpService,pTcpService2)
node.Init()
node.Start()
}