修改网络底层

This commit is contained in:
duanhf2012
2020-03-13 15:37:49 +08:00
parent 686d88cabc
commit 0d98f77d07
2 changed files with 2 additions and 6 deletions

View File

@@ -114,10 +114,7 @@ func (slf *TcpSocketPbService) OnDisconnect(pClient *network.SClient){
slf.disconnEvent(pClient.GetId())
}
}
func (slf *TcpSocketPbService) VerifyPackType(packtype uint16) bool{
_,ok := slf.mapMsg[packtype]
return ok
}
func (slf *MsgProcessor) Handle(pClient *network.SClient,pPack *network.MsgBasePack){
if info, ok := slf.mapMsg[pPack.PackType]; ok {