Versions in this module Expand all Collapse all v1 v1.0.0 Nov 12, 2023 Changes in this version + func NewEnhancePacketConn(pc packet.EnhancePacketConn) packet.EnhancePacketConn + func NewEnhanceSingPacketConn(pc packet.EnhanceSingPacketConn) packet.EnhanceSingPacketConn + func NewNetPacketConn(pc net.PacketConn) net.PacketConn + func NewSingPacketConn(pc packet.SingPacketConn) packet.SingPacketConn + type EnhancePacketConn struct + func (c *EnhancePacketConn) WaitReadFrom() (data []byte, put func(), addr net.Addr, err error) + type EnhanceSingPacketConn struct + func (c *EnhanceSingPacketConn) CreateReadWaiter() (N.PacketReadWaiter, bool) + func (c *EnhanceSingPacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error) + func (c *EnhanceSingPacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error + func (c EnhanceSingPacketConn) WaitReadFrom() (data []byte, put func(), addr net.Addr, err error) + type NetPacketConn struct + func (c *NetPacketConn) NeedAdditionalReadDeadline() bool + func (c *NetPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) + func (c *NetPacketConn) ReaderReplaceable() bool + func (c *NetPacketConn) SetReadDeadline(t time.Time) error + func (c *NetPacketConn) Upstream() any + func (c *NetPacketConn) WriterReplaceable() bool + type SingPacketConn struct + func (c *SingPacketConn) CreateReadWaiter() (N.PacketReadWaiter, bool) + func (c *SingPacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error) + func (c *SingPacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error