diff --git a/network/processor/pbprocessor.go b/network/processor/pbprocessor.go index 1660ee4..86619d8 100644 --- a/network/processor/pbprocessor.go +++ b/network/processor/pbprocessor.go @@ -34,6 +34,14 @@ type PBPackInfo struct { msg proto.Message } +func (slf *PBPackInfo) GetPackType() uint16 { + return slf.typ +} + +func (slf *PBPackInfo) GetMsg() proto.Message { + return slf.msg +} + // must goroutine safe func (slf *PBProcessor ) Route(msg interface{},userdata interface{}) error{ pPackInfo := msg.(*PBPackInfo)