Update On Sat Nov 15 19:34:53 CET 2025

This commit is contained in:
github-action[bot]
2025-11-15 19:34:54 +01:00
parent a9ffe0eb91
commit 2d1a3e7bc1
93 changed files with 1073 additions and 2080 deletions
+7
View File
@@ -17,6 +17,7 @@ package protocol
import (
"fmt"
"net"
"sync"
"time"
@@ -126,6 +127,12 @@ func segmentLessFunc(a, b *segment) bool {
return a.Less(b)
}
// bufferWithAddr associate a raw network packet payload with a remote network address.
type bufferWithAddr struct {
b []byte
addr net.Addr
}
// segmentIterator processes the given segment.
// If it returns false, stop the iteration.
type segmentIterator func(*segment) bool