Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 Changes in this version + var KeepAliveInterval = 15 * time.Second + var NewDeadlineEnhancePacketConn = deadline.NewEnhancePacketConn + var NewDeadlineEnhanceSingPacketConn = deadline.NewEnhanceSingPacketConn + var NewDeadlineNetPacketConn = deadline.NewNetPacketConn + var NewDeadlineSingPacketConn = deadline.NewSingPacketConn + var NewEnhancePacketConn = packet.NewEnhancePacketConn + var NewExtendedConn = bufio.NewExtendedConn + var NewExtendedReader = bufio.NewExtendedReader + var NewExtendedWriter = bufio.NewExtendedWriter + var NewRefPacketConn = packet.NewRefPacketConn + var NewThreadSafePacketConn = packet.NewThreadSafePacketConn + var Pipe = deadline.Pipe + var WriteBuffer = bufio.WriteBuffer + func MaskWebSocket(key uint32, b []byte) uint32 + func NeedHandshake(conn any) bool + func NewBindPacketConn(pc net.PacketConn, rAddr net.Addr) net.Conn + func NewEarlyConn(c net.Conn, f func() error) net.Conn + func NewRefConn(conn net.Conn, ref any) net.Conn + func ParseCert(certificate, privateKey string, path Path) (tls.Certificate, error) + func Relay(leftConn, rightConn net.Conn) + func SetupContextForConn(ctx context.Context, conn net.Conn) (done func(*error)) + func SplitHostPort(s string) (host, port string, hasPort bool, err error) + func SplitNetworkType(s string) (string, string, error) + func TCPKeepAlive(c net.Conn) + func WarpConnWithBioReader(c net.Conn, br *bufio.Reader) net.Conn + type BufferedConn struct + func NewBufferedConn(c net.Conn) *BufferedConn + func (c *BufferedConn) AppendData(buf []byte) (ok bool) + func (c *BufferedConn) Buffered() int + func (c *BufferedConn) Discard(n int) (discarded int, err error) + func (c *BufferedConn) Peek(n int) ([]byte, error) + func (c *BufferedConn) Peeked() bool + func (c *BufferedConn) Read(p []byte) (int, error) + func (c *BufferedConn) ReadBuffer(buffer *buf.Buffer) (err error) + func (c *BufferedConn) ReadByte() (byte, error) + func (c *BufferedConn) ReadCached() *buf.Buffer + func (c *BufferedConn) Reader() *bufio.Reader + func (c *BufferedConn) ReaderReplaceable() bool + func (c *BufferedConn) ResetPeeked() + func (c *BufferedConn) UnreadByte() error + func (c *BufferedConn) Upstream() any + func (c *BufferedConn) WriterReplaceable() bool + type CachedConn struct + func NewCachedConn(c net.Conn, data []byte) *CachedConn + func (c *CachedConn) Read(b []byte) (n int, err error) + func (c *CachedConn) ReadCached() *buf.Buffer + func (c *CachedConn) ReaderReplaceable() bool + func (c *CachedConn) Upstream() any + func (c *CachedConn) WriterReplaceable() bool + type CountFunc = network.CountFunc + type CustomAddr interface + RawAddr func() net.Addr + func NewCustomAddr(networkStr string, addrStr string, rawAddr net.Addr) CustomAddr + type EnhancePacketConn = packet.EnhancePacketConn + type ExtendedConn = network.ExtendedConn + func NewDeadlineConn(conn net.Conn) ExtendedConn + type ExtendedReader = network.ExtendedReader + type ExtendedWriter = network.ExtendedWriter + type Path interface + Resolve func(path string) string + type ReadOnlyReader struct + type WaitReadFrom = packet.WaitReadFrom + type WriteOnlyWriter struct