Documentation ¶
Index ¶
- func NewClient(config *protocol.Protocol_Quic) point.WrapProxy
- func NewFragFrameBytesBuffer(t FragType, id uint64, total, current uint8, payload []byte) []byte
- func NewServer(c *listener.Inbound_Quic) (netapi.Listener, error)
- type Client
- type ConnectionPacketConn
- type Frag
- type FragType
- type MergeFrag
- type QuicAddr
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFragFrameBytesBuffer ¶ added in v0.3.3
every frame max length: 1200 - 3
Single Frame max payload length: 1200 - 3 - 1 +-------+~~~~~~~~~~~~~~+ | type | payload | +-------+~~~~~~~~~~~~~~+ | 1 | variable | +-------+~~~~~~~~~~~~~~+
Split Frame max payload length: 1200 - 3 - 1 - 8 - 1 - 1 +------+------------------+---------+---------+~~~~~~~~~~~~~~+ | type | id | total | current | payload | +------+------------------+---------+---------+~~~~~~~~~~~~~~+ | 1 | 8 bytes | 1 byte | 1 byte | variable | +------+------------------+---------+---------+~~~~~~~~~~~~~~+
Types ¶
type Client ¶
type Client struct { netapi.EmptyDispatch // contains filtered or unexported fields }
func (*Client) PacketConn ¶
type ConnectionPacketConn ¶
type ConnectionPacketConn struct { MaxDatagramFrameSize *atomic.Int64 // contains filtered or unexported fields }
func NewConnectionPacketConn ¶
func NewConnectionPacketConn(conn quic.Connection) *ConnectionPacketConn
func (*ConnectionPacketConn) Context ¶ added in v0.3.3
func (c *ConnectionPacketConn) Context() context.Context
Click to show internal directories.
Click to hide internal directories.