Versions in this module Expand all Collapse all v1 v1.2.0 Aug 9, 2026 Changes in this version + type Batch struct + func NewBatch(_ socketFD, _, _ int) *Batch + func NewBatch(fd socketFD, batchSize, maxPktLen int) *Batch + func (b *Batch) Add(_ []byte, _ [4]byte) error + func (b *Batch) Add(pkt []byte, dstIP [4]byte) error + func (b *Batch) Flush() error + func (b *Batch) Len() int + type Sender struct + func NewFromFD(fd socketFD, conn *net.IPConn) *Sender + func NewFromIPConn(conn *net.IPConn) (*Sender, error) + func (s *Sender) FD() socketFD + func (s *Sender) SendTo(pkt []byte, dstIP [4]byte) error