1
This commit is contained in:
parent
b59edac9d7
commit
b9582b52c2
@ -7,6 +7,7 @@ import (
|
|||||||
"q5"
|
"q5"
|
||||||
"f5"
|
"f5"
|
||||||
"cs"
|
"cs"
|
||||||
|
"mt"
|
||||||
|
|
||||||
proto "github.com/golang/protobuf/proto"
|
proto "github.com/golang/protobuf/proto"
|
||||||
)
|
)
|
||||||
@ -21,7 +22,8 @@ var wspListener = new (WSPListener)
|
|||||||
|
|
||||||
func (this *WSPListener) Init() {
|
func (this *WSPListener) Init() {
|
||||||
this.ch = make(chan *f5.MsgHdr)
|
this.ch = make(chan *f5.MsgHdr)
|
||||||
listener, err := net.Listen("tcp", "0.0.0.0:8888")
|
listener, err := net.Listen("tcp", "0.0.0.0:" +
|
||||||
|
q5.ToString(mt.Table.IMServer.GetById(0).GetListenPort()))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -28,6 +28,7 @@ func (this *App) Init() {
|
|||||||
this.workList.Init(nil)
|
this.workList.Init(nil)
|
||||||
f5.LoadMetaTable(mt.Table)
|
f5.LoadMetaTable(mt.Table)
|
||||||
fmt.Println("listen_port", mt.Table.IMServer.GetById(0).GetListenPort())
|
fmt.Println("listen_port", mt.Table.IMServer.GetById(0).GetListenPort())
|
||||||
|
|
||||||
handlerMgr.Init()
|
handlerMgr.Init()
|
||||||
wspListener.Init()
|
wspListener.Init()
|
||||||
go this.goReportServerState()
|
go this.goReportServerState()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user