begin testing tcp listener (not working)

This commit is contained in:
soypat
2025-06-09 20:38:40 -03:00
parent 76be78812f
commit 6b511999d1
16 changed files with 136 additions and 48 deletions
+1
View File
@@ -50,6 +50,7 @@ type ringidx struct {
// Reset resets the RingTx's internal state to use buf as the main ring buffer and creates or reuses
// the packet ring buffer.
func (rtx *ringTx) Reset(buf []byte, maxqueuedPackets int, seq Value) error {
buf = buf[:len(buf):len(buf)] // safely omit capacity section.
if maxqueuedPackets <= 0 {
return errors.New("queued packets <=0")
} else if len(buf) < minBufferSize || len(buf) < maxqueuedPackets {