mirror of
https://github.com/soypat/lneto.git
synced 2026-08-25 17:09:05 +00:00
begin testing tcp listener (not working)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user