mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
Update On Sat Nov 15 19:34:53 CET 2025
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user