aboutsummaryrefslogtreecommitdiff
path: root/network/protocol/sideband64k/constants.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-25 16:22:03 +0000
committerGravatar Runxi Yu2026-03-25 16:22:03 +0000
commit311edcd50f3a84f4b860bde3cb887451d74eaa11 (patch)
treebe7aa5e9a51e636358f33b1c90637b5024b70dc3 /network/protocol/sideband64k/constants.go
parentREADME: Split off contrib, benchmarks, remove history for now I guess, etc. (diff)
signatureNo signature
network/protocol: Rename from protocol v0.1.110
Diffstat (limited to 'network/protocol/sideband64k/constants.go')
-rw-r--r--network/protocol/sideband64k/constants.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/network/protocol/sideband64k/constants.go b/network/protocol/sideband64k/constants.go
new file mode 100644
index 00000000..2a6a2e47
--- /dev/null
+++ b/network/protocol/sideband64k/constants.go
@@ -0,0 +1,10 @@
+package sideband64k
+
+import "codeberg.org/lindenii/furgit/network/protocol/pktline"
+
+const (
+ // PacketMax is the maximum on-wire pkt-line size used by side-band-64k.
+ PacketMax = pktline.LargePacketMax
+ // DataMax is the maximum sideband payload size excluding the 1-byte band designator.
+ DataMax = pktline.LargePacketDataMax - 1
+)