新增tcp protobuf接口

This commit is contained in:
duanhf2012
2020-01-21 10:47:52 +08:00
parent c3cb6ff977
commit 263aeb232c
9 changed files with 402 additions and 51 deletions

View File

@@ -1,11 +1,12 @@
package main
import (
_ "github.com/duanhf2012/origin/Test/logicservice"
"github.com/duanhf2012/origin/cluster"
"github.com/duanhf2012/origin/network"
"github.com/duanhf2012/origin/originnode"
"github.com/duanhf2012/origin/sysservice"
"github.com/duanhf2012/origin/sysservice/originhttp"
"github.com/duanhf2012/origin/network"
)
@@ -21,9 +22,7 @@ func (slf *TcpSocketServerReciver) OnDisconnect(pClient *network.SClient){
}
func (slf *TcpSocketServerReciver) OnRecvMsg(pClient *network.SClient, pPack *network.MsgBasePack){
}
func main() {
@@ -38,7 +37,7 @@ func main() {
httpserver.SetHttps(ca.CertFile, ca.KeyFile)
}
pTcpService := sysservice.NewTcpSocketPbService(":9004",&TcpSocketServerReciver{})
pTcpService := sysservice.NewTcpSocketPbService(":9004")
httpserver.SetPrintRequestTime(true)
node.SetupService(httpserver,pTcpService)