rts-sim-testing-service/third_party/tcp/tcp_message.go

15 lines
206 B
Go
Raw Normal View History

2024-04-02 18:24:46 +08:00
package tcp
type TcpMessageCodec interface {
TcpMessageEncoder
TcpMessageDecoder
}
type TcpMessageEncoder interface {
Encode() []byte
}
type TcpMessageDecoder interface {
Decode(data []byte) error
}