BaseMsgReadWriter

- Change `BaseMsgReadWriter` to encode/decode messages with abstract
method, which can be implemented by the subclasses. This allows us to
create subclasses `FixedSizeLenMsgReadWriter` and
`VarIntLenMsgReadWriter`.
This commit is contained in:
mhchia
2020-02-20 21:48:03 +08:00
parent 88f660a9c5
commit 6016ea731b
5 changed files with 59 additions and 30 deletions

View File

@ -23,3 +23,7 @@ class MissingMessageException(MsgioException):
class DecryptionFailedException(MsgioException):
pass
class MessageTooLarge(MsgioException):
pass