diff --git a/interfaces/i_message.go b/interfaces/i_message.go new file mode 100644 index 0000000..415de52 --- /dev/null +++ b/interfaces/i_message.go @@ -0,0 +1,4 @@ +package interfaces + +type IMessage interface { +} diff --git a/interfaces/i_packet.go b/interfaces/i_packet.go index b448881..34e6cbf 100644 --- a/interfaces/i_packet.go +++ b/interfaces/i_packet.go @@ -2,6 +2,6 @@ package interfaces // IPacket 面向TCP连接中的数据流,网络数据包抽象接口 type IPacket interface { - // HeaderLength TCP数据帧头部长度,固定长度值 - HeaderLength() int + // HeaderLen TCP数据帧头部长度,固定长度值 + HeaderLen() int }