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 + type Base struct + Key []byte + Overhead int + Param string + type Conn struct + func (c *Conn) Read(b []byte) (int, error) + func (c *Conn) Write(b []byte) (int, error) + type PacketConn struct + func (c *PacketConn) ReadFrom(b []byte) (int, net.Addr, error) + func (c *PacketConn) WaitReadFrom() (data []byte, put func(), addr net.Addr, err error) + func (c *PacketConn) WriteTo(b []byte, addr net.Addr) (int, error) + type Protocol interface + Decode func(dst, src *bytes.Buffer) error + DecodePacket func([]byte) ([]byte, error) + Encode func(buf *bytes.Buffer, b []byte) error + EncodePacket func(buf *bytes.Buffer, b []byte) error + PacketConn func(N.EnhancePacketConn) N.EnhancePacketConn + StreamConn func(net.Conn, []byte) net.Conn + func PickProtocol(name string, b *Base) (Protocol, error)