1
This commit is contained in:
parent
70c63765b9
commit
4c69c53b00
@ -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)
|
||||
}
|
||||
|
@ -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() {
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user