mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-24 06:34:42 +08:00
修改网络底层
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user