mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-13 19:27:32 +08:00
1.优化网络模块
2.新增kcp模块
This commit is contained in:
@@ -95,9 +95,7 @@ func (tcpService *TcpService) OnInit() error {
|
||||
|
||||
tcpService.mapClient = make(map[string]*Client, tcpService.tcpServer.MaxConnNum)
|
||||
tcpService.tcpServer.NewAgent = tcpService.NewClient
|
||||
tcpService.tcpServer.Start()
|
||||
|
||||
return nil
|
||||
return tcpService.tcpServer.Start()
|
||||
}
|
||||
|
||||
func (tcpService *TcpService) TcpEventHandler(ev event.IEvent) {
|
||||
|
||||
@@ -80,8 +80,7 @@ func (ws *WSService) OnInit() error {
|
||||
|
||||
ws.mapClient = make(map[string]*WSClient, ws.wsServer.MaxConnNum)
|
||||
ws.wsServer.NewAgent = ws.NewWSClient
|
||||
ws.wsServer.Start()
|
||||
return nil
|
||||
return ws.wsServer.Start()
|
||||
}
|
||||
|
||||
func (ws *WSService) SetMessageType(messageType int) {
|
||||
|
||||
Reference in New Issue
Block a user