packets upgrade
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"io"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
type Direction int
|
||||
@@ -210,3 +211,12 @@ type EncodeDecodeAble interface {
|
||||
Encode(w io.Writer) (err error)
|
||||
Decode(r io.Reader) (err error)
|
||||
}
|
||||
|
||||
type PacketInfo struct {
|
||||
Type reflect.Type
|
||||
Name string
|
||||
Direction Direction
|
||||
State State
|
||||
PacketId int
|
||||
ProtocolVersion int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user