This commit is contained in:
aozhiwei 2024-07-05 15:49:44 +08:00
parent 70c63765b9
commit 4c69c53b00
2 changed files with 0 additions and 21 deletions

View File

@ -7,10 +7,8 @@ import (
var _wspListener = new(WSPListener)
var _handlerMgr = new(HandlerMgr)
var _httpListener = new(httpListener)
func init() {
global.RegModule(constant.WSPLISTENER_MODULE_IDX, _wspListener)
global.RegModule(constant.HANDLER_MGR_MODULE_IDX, _handlerMgr)
global.RegModule(constant.HTTP_LISTENER_MODULE_IDX, _httpListener)
}

View File

@ -1,19 +0,0 @@
package listener
import (
"f5"
"mt"
)
type httpListener struct {
httpServer *f5.HttpServer
}
func (this *httpListener) Init() {
this.httpServer = new(f5.HttpServer)
this.httpServer.Init("matchserver.httplistener", 1000*10)
this.httpServer.Start(mt.Table.MatchCluster.GetHttpListenPort())
}
func (this *httpListener) UnInit() {
}