Documentation ¶
Index ¶
Constants ¶
View Source
const BufferSize = 16 * 1024
View Source
const MaxUdpAge = 5 * time.Minute
Variables ¶
View Source
var BufPool = sync.Pool{New: func() any { return make([]byte, BufferSize) }}
Functions ¶
Types ¶
type EnhancePacketConn ¶ added in v0.1.34
type EnhancePacketConn interface { net.PacketConn WaitReadFrom() (data []byte, put func(), addr netip.AddrPort, err error) }
func NewEnhancePacketConn ¶ added in v0.1.34
func NewEnhancePacketConn(pc net.PacketConn) EnhancePacketConn
type MmsgMapItem ¶
type MmsgTunnel ¶
type MmsgTunnel struct {
// contains filtered or unexported fields
}
func (*MmsgTunnel) Handle ¶
func (t *MmsgTunnel) Handle()
type StdMapItem ¶
Click to show internal directories.
Click to hide internal directories.