From 3307715a8d8bdeac1b2d7df66ec2abb6e503ba9a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 13:01:12 +0800 Subject: format/pktline: Add pktline --- format/pktline/constants.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 format/pktline/constants.go (limited to 'format/pktline/constants.go') diff --git a/format/pktline/constants.go b/format/pktline/constants.go new file mode 100644 index 00000000..811eb3c6 --- /dev/null +++ b/format/pktline/constants.go @@ -0,0 +1,12 @@ +package pktline + +const ( + // DefaultPacketMax is a conservative packet size commonly used by + // line-oriented protocol messages. + DefaultPacketMax = 1000 + // LargePacketMax is the maximum on-wire packet size including the + // 4-byte hexadecimal length header. + LargePacketMax = 65520 + // LargePacketDataMax is the maximum payload size in one packet. + LargePacketDataMax = LargePacketMax - 4 +) -- cgit v1.3.1-10-gc9f91