mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-18 06:57:29 +08:00
新增网络服务
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user