mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-15 05:07:29 +08:00
修复解包bug
This commit is contained in:
@@ -98,6 +98,12 @@ func (slf *TcpSocketPbService) OnDisconnect(pClient *network.SClient){
|
||||
}
|
||||
}
|
||||
|
||||
func (slf *TcpSocketPbService) VerifyPackType(packtype uint16) bool{
|
||||
_,ok := slf.mapMsg[packtype]
|
||||
return ok
|
||||
}
|
||||
|
||||
|
||||
func (slf *TcpSocketPbService) OnExceptMsg (pClient *network.SClient,pPack *network.MsgBasePack,err error){
|
||||
if slf.exceptMsgHandler!=nil {
|
||||
slf.exceptMsgHandler(pClient,pPack,err)
|
||||
|
||||
Reference in New Issue
Block a user