From e16ec86acd17a28df36ea6d864f6c8a32beb2bf8 Mon Sep 17 00:00:00 2001 From: NorthLan <6995syu@163.com> Date: Wed, 26 Oct 2022 18:01:13 +0800 Subject: [PATCH] =?UTF-8?q?wip:=20=E6=B7=BB=E5=8A=A0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=92=8C=E5=8C=85=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/i_message.go | 4 ++++ interfaces/i_packet.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 interfaces/i_message.go 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 }