diff options
Diffstat (limited to 'network/protocol/pktline/constants.go')
| -rw-r--r-- | network/protocol/pktline/constants.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/network/protocol/pktline/constants.go b/network/protocol/pktline/constants.go new file mode 100644 index 00000000..811eb3c6 --- /dev/null +++ b/network/protocol/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 +) |
