This commit is contained in:
殷勇 2023-10-09 11:22:46 +08:00
parent b740255bb8
commit 22031c44ef
2 changed files with 12 additions and 8 deletions

View File

@ -1,19 +1,19 @@
package app
import (
"f5"
"q5"
"mt"
"cs"
"ss"
"f5"
"main/constant"
. "main/global"
"mt"
"q5"
"ss"
)
type app struct {
netMsgQueue q5.Queue
initCb func()
unInitCb func()
initCb func()
unInitCb func()
}
func (this *app) GetPkgName() string {
@ -82,3 +82,7 @@ func (this *app) AddNetMsg(hdr *f5.MsgHdr) {
func (this *app) registerDataSources() {
}
func (this *app) GetHttpListenPort() int32 {
return mt.Table.HallCluster.GetHttpListenPort()
}

View File

@ -10,8 +10,8 @@ type httpListener struct {
}
func (this *httpListener) Init() {
this.httpServer = new (f5.HttpServer)
this.httpServer.Init("imserver.httplistener", 1000 * 10)
this.httpServer = new(f5.HttpServer)
this.httpServer.Init("hallserver.httplistener", 1000*10)
this.httpServer.Start(mt.Table.HallCluster.GetHttpListenPort())
}